I would like to display a user account signup form if no user is present. The signup form will then create a new user account with admin privileges.
Right now I am creating a pre-defined / hard coded admin account. Whenever user clicks on a login page, the application checks for an account with admin privileges. If no such account is found, then I am creating an admin account. Usually it will occur during first run of the application. I would like to prompt user to create an admin account automatically, i.e., without user having to click on any link. How can I invoke my signup method in this manner? Where should I define it and call it from? Thanks, Amita. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

