Method dependent validation?

Hi,

I'm just working my way through Rails and had a question on
validations. It seems that the default ActiveRecord validation only
works on "save", "create", "update", etc. Assume I have a form for
registration, which creates the user, and another one for login which
references the user record (username, password). How do I make the
login also check that the user has filled the form or entered a
username? Is it programmatic in the controller, or is there some rails
mechanism that enables me to apply many of the same validations I use
for registration, also for login?

Many Thanks

Hi Farhad,

You should direct questions like this to the general list[1]. The core
list is meant for discussion of the framework's development, not
questions about it usage.

[1] http://groups.google.com/group/rubyonrails-talk

Oops - my bad. Thanks.