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
<%= category.category %> |
[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]})
%>
thanks,
Thufir