title: How do I create an admin in Ruby On Rails using the Devise Gem?
body: <p>I am developing a rails application and am using a gem called devise to manage my users. I have created a new user called "Admin" but am unsure on how to change a user on the application from a "User" to an "Admin".</p>
  
  <p>On the documentation it says:
  "The code below can be used to grant admin status to the current user."</p>
  
  <pre><code>current_user.update_attribute :admin, true
  </code></pre>
  
  <p>But where would this snippet go? 
  Here is the documentation, The admin role creation info is near the bottom of the page.
  <a href="https://github.com/plataformatec/devise/wiki/How-To%3A-Add-an-Admin-Role" rel="nofollow">https://github.com/plataformatec/devise/wiki/How-To%3A-Add-an-Admin-Role</a></p>