Context
I am creating a super-simple, embossed sexy sign-up at http://hivechatter.com . (Yes, I take her very strongly.)
The root page is a new user action in which I request only the email address. If the visitor sends a valid email, a new user is created and I will be redirected to the edit page of this user and request additional additional information.
Problem
The URL of the edit page has the usual form: http://hivechatter.com/users/19/edit . Visit the edit page of any user simply by visiting this URL with any identifier number that they choose.
Question
How to restrict access to the editing page so that it can be visited only once and only immediately after creating this user_id from a new user page?
I can come up with many methods to learn. I would appreciate a pointer to the most elegant way to rails. Please note that I do not need any additional features such as sessions, etc. This two-step registration process is the volume of what I need right now.
Thank!
source
share