Wednesday, November 10, 2010

[Rails] Registration Problem

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate