ankit c wrote in post #1168678:
> using rails console create new admin.. for instance, if you are having
> user
> model having role admin.. you can create like
> User.create(:email => "ad...@admin.com", :username => "admin", :password
> =>
> "12345678", :password_confirmation => "12345678", :admin
using rails console create new admin.. for instance, if you are having user
model having role admin.. you can create like
User.create(:email => "ad...@admin.com", :username => "admin", :password =>
"12345678", :password_confirmation => "12345678", :admin => true)..
I hope this will help
On Thu
2 matches
Mail list logo