Submit button for drop down list

I want to be able to add/remove Category items from the GUI rather than
the console.

From “Listing feeds” clicking on “show” gives:

Feed: feed1
Edit | Back
Itemized Categories
cat1
category2

Then, clicking on “edit” will give:

Editing feed

Feed

Category
Show | Back

Where there’s a drop down list of Category items. However, how do I
add/
remove the associated Category rows? I’m missing some sort of submit
button?

[email protected] ~/Desktop/strawr $
[email protected] ~/Desktop/strawr $ tail app/views/feeds/show.rhtml –
lines=13

<% if @feed.has_categories? %>

Itemized Categories

<% for category in @feed.categories %> <% end %>
<%= category.category %>
<% end %>

[email protected] ~/Desktop/strawr $
[email protected] ~/Desktop/strawr $ tail app/views/feeds/_form.rhtml –
lines=2

Category
<%= select("post", "category_id", Category.find_all.collect {|c| [c.category, c.id]}) %>

[email protected] ~/Desktop/strawr $

thanks,

Thufir

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs