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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Lp (Guest)
on 2009-04-05 19: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

This topic is locked and can not be replied to.