Forum: Ruby on Rails Partial-Form validation from multiple pages (f.e. login-partial)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0cedd46c066dcebbba537edbd5fef613?d=identicon&s=25 Lp (Guest)
on 2009-04-05 17:54
(Received via mailing list)
Hello - hard question:

I have my login-partial in my application.html.erb-layout.

Now I want to validate it, if the user pushes the submit button and
show error-messages for it, if e.g. the passwordfield is empty.

But how do I do that? For getting the error messages, I must use

render :action => 'create'

But there I have to know, from which action I came from. Beside
different pages, need different seperate instance variables (which
arn't reproduced with render :action).

Second try with

redirect_to :back

looses the errors-array...!

How can I solve this problem? Found nothing in the net =(
Beside: I'm using restful_authentication-plugin

HEEELP!
This topic is locked and can not be replied to.