Singleton user of a given role in Rails 3

Hello All,

I have a requirement where a site needs to have a “Super User” and
exactly
one of those could be created.

The flow would be like this

  • User installs the app
  • the web app comes up
  • the first thing that the webapp does it to prompt creation of super
    user.
  • the super user is logged in and goes on to create other users.
  • the super user login page is never shown again
  • there can be only one superuser.

I’m on Rails 3. What’d be the best way of accomplishing this?


Best,
Manish Chakravarty

this is very easy , but now im busy at work ill post some suggestions in
about 3 hours is no one answers

On Tue, Sep 14, 2010 at 9:07 AM, Manish Chakravarty

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs