Ruby on Rails
Tuesday, November 2, 2010
Hello all,
I have a named scope 'profile' that points to 'users/edit' (there is no id as I'm using Authlogic). 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.
Am I doing something ultra simple wrong?
Thank you
-ants
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment