# Singleton user of a given role in Rails 3

**URL:** <https://www.ruby-forum.com/t/singleton-user-of-a-given-role-in-rails-3/194973>\
**Category:** Rails\
**Created:** [September 14, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/singleton-user-of-a-given-role-in-rails-3/194973 "2010-09-14T16:20:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manish\_Chakravarty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Manish\_Chakravarty](https://www.ruby-forum.com/u/Manish_Chakravarty)\
**Post date:** [September 14, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/singleton-user-of-a-given-role-in-rails-3/194973/1 "2010-09-14T16:20:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Manish\_Chakravarty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Manish\_Chakravarty](https://www.ruby-forum.com/u/Manish_Chakravarty)\
**Post date:** [September 14, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/singleton-user-of-a-given-role-in-rails-3/194973/2 "2010-09-14T18:49:46Z")

</div>

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
