I did mean route, yes (it was late, I was tired) render :template => is the same as :action =>, it changes the url to users/:id, I want to keep my /profile url upon failure.
On 2 November 2010 21:42, Marnen Laibow-Koser <[email protected]> wrote: > Ants Pants wrote in post #958778: > > Hello all, > > > > I have a named scope 'profile' that points to 'users/edit' (there is no > > id > > as I'm using Authlogic). > > Did you mean a named *route*? This doesn't make sense with a named > scope. > > > When the update fails, I want to keep the same > > url > > /profile and keep my error messages. How do I do this? Using render > > :action > > => 'edit' or 'profile' (I set up a profile template to test it) Redirect > > allows me to keep the url but I lose the error messages. > > Try render :template instead. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > [email protected] > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

