I am trying to create a devise user using rails console with the below method
User.create!({:email => "abc@gmail.com", :roles => ["admin"], :password => "abc123", :password_confirmation => "abc123" })
I am not able to understand If the user is created or not. After I hit enter command I do not get any respond. I did user.save and then did u.all but it shows nothing and I am not able to login.
Please suggest what's wrong.
Edit: I am trying below as well but it is not working
@user = User.new(:email => 'test@example.com', :password => 'password', :password_confirmation => 'password')
@user.save
Thanks