Register a "User" devise through seeds.rb

2

I am finalizing a project and want to create a default user. The entire user registry structure is performed by devise built into rails_admin.

Through search I found this syntax below however it does not work:

User.create(:email => '[email protected]', :password => 'senha', :password_confirmation => 'senha')
    
asked by anonymous 10.02.2014 / 19:46

1 answer

2

You have to run the command:

rake db:seed

on the console.

    
10.02.2014 / 19:48