validating user's e-mail address with hashed link

Hi everyone-

This is obviously a pattern, can someone suggest pseudocode, including
where to put the mailing?

I was thinking in the model:

  - create hash for link
  - send e-mail with clickable link

in the view
  - if the create is successful, redirect to "you'll be getting an e-
mail" page

in controller:
  - create an action called confirmation that takes hash and login
from GET
  - change status of user to confirmed

is there an easier (built-in to rails) approach?


look at restful_authentication, it provides a method for activating a
user with an activation code and acts_as_state_machine


validates_format_of :email, :with =>
                                       :message => "is not valid"

Try this..