Hi Chris, On Thu, 2009-04-02 at 23:31 +0200, Chris Hanks wrote: > Hi - > > My problem is that the login screen can be accessed through > example.com/login just as I'd like it to be, but when there's a problem > with the form input, the url changes to example.com/user_session, which > I really don't like. If I change the "render :new" in the controller to > "redirect_to login_path" then I'm sent to the correct url, but the > rails-generated errors don't appear, and the information that had been > entered is wiped out, so I don't want to do that.
I'm not sure about the latest versions of RESTful routing but it used to be easy enough to pass the params hash along to the redirected_to method. redirect_to :action => 'redirected_to_method', :form_data => params[:form_data] As a first cut I'd try: redirect_to login_path, :form_data => params[:form_data] Not sure about the error messages. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

