Hello,
I have some non-REST named routes, e.g. home_url, to hook up a couple
of static pages on my otherwise RESTful site.
I would like to use link_to_unless_current or current_page? but the
problem is those methods take an options hash rather than a url
string as generated by, say, home_url.
What''s the best way to reverse-engineer a URL into an options hash?
I know you can use hash_for_xxx for a RESTful route but that doesn''t
work with non-RESTful routes.
Thanks and regards,
Andy Stewart
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---