Ruby on Rails Wednesday, February 25, 2015

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 => "admin@admin.com", :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

okay thank you ,i will try this.

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b199d5d80a2fdf61518049001457f6dd%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment