andreim wrote:> according to http://www.rubyonrails.org/deprecation redirect_to is
> deprecated. My logs say that "Instead you should use the named route
from the doc:
redirect_to_path, redirect_to_url.
Use redirect_to.
it says redirect_to_path and _url are deprecated, not redirect_to
itself.
Named routes are routes you give a name to in config/routes.rb.
i.e. map.actionname ''/actionurl'', :controller =>
''mycontroller'', :action
=> ''myaction''
you can then redirect_to it by:
redirect_to actionname_url
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---