Ruby on Rails Tuesday, November 2, 2010

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
marnen@marnen.org

--
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@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.

No comments:

Post a Comment