If you use authlogic, this is automatically done. In fact  I strongly
recommend using authlogic for registration process.

- Gautam
Twitter: @gautamrege


On Wed, Nov 10, 2010 at 6:07 PM, kishoj <[email protected]> wrote:

> How do i generate random number using ruby for the activation_code?
> And what must be defined on the controller so that i can access the
> URI using function of controller?
> /activate/#{user.activation_code}"
> activate is controller and suppose the activation_code is 11111
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to