search for: admin_link

Displaying 1 result from an estimated 1 matches for "admin_link".

Did you mean: admin_links
2008 Feb 29
3
How to DRY REST admin path in URLs?
...%> <%= link_to "Destroy", user_path(user), :confirm => "Are you sure", :method => :delete %> I am tired of writing those links down over and over and look for a way to DRY it a little bit. I am thinking about a helper method allowing me to write a simple <%= admin_links(user) %> but I don''t know how to dynamically write the user_path, edit_user_path and so on? An idea anyone? In advance, thank you very much! Yannis -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because yo...