I have a very basic controller with all the restful actions.
What im trying to do i my views is show a "back to links" link in
every view except the index view.

Im trying to keep it DRY and use some conditional statment in the
application.html.erb. I cant seem to get it to work. what i tried was
using the link_to_unless helper, but i cant get it to work.

    <%= link_to_unless({:controller => "links", :action => "index"},
"Back to links", {:action => "index" }) %>

while this is rendering the Back to links text, its not creating a
link and rendering it in the links controller with any action

any ideas on how i can accomplish this?
am i using this wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to