Guest User

Untitled

a guest
Jul 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # routes
  2. map.publish_feed_entry "feed_entries/publish/:id", :controller => "feed_entries", :action => "publish"
  3. # rake routes
  4. publish_feed_entry /feed_entries/publish/:id {:action=>"publish", :controller=>"feed_entries"}
  5. # view
  6. <% @feed_entries.each do |entry| %>
  7. <%= link_to 'Publish', publish_feed_entry(entry) %>
  8. <% end %>
  9.  
  10. # ERROR:
  11. undefined method `publish_feed_entry' for #<ActionView::Base:0xb6e3621c>
  12. <%= link_to 'Publish', publish_feed_entry(entry) %>
Add Comment
Please, Sign In to add comment