using rails console create new admin.. for instance, if you are having user 
model having role admin.. you can create like
User.create(:email => "[email protected]", :username => "admin", :password => 
"12345678", :password_confirmation => "12345678", :admin => true).. 

I hope this will help

On Thursday, February 26, 2015 at 12:13:54 PM UTC+5:30, Ruby-Forum.com User 
wrote:
>
> our site admin deleted his own id while deleting users ,what can i do 
> now to get back admin user can any one help,its urgent. 
>
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c477c333-bfd4-4b04-a094-4ce4869831c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to