Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # routes
- map.publish_feed_entry "feed_entries/publish/:id", :controller => "feed_entries", :action => "publish"
- # rake routes
- publish_feed_entry /feed_entries/publish/:id {:action=>"publish", :controller=>"feed_entries"}
- # view
- <% @feed_entries.each do |entry| %>
- <%= link_to 'Publish', publish_feed_entry(entry) %>
- <% end %>
- # ERROR:
- undefined method `publish_feed_entry' for #<ActionView::Base:0xb6e3621c>
- <%= link_to 'Publish', publish_feed_entry(entry) %>
Add Comment
Please, Sign In to add comment