Authentication: 2. Authorization
2015-11-27 23:06:54 UTC
Could someone please explain how to do step 3?
I am completely lost.
2015-12-22 10:29:07 UTC
Go to app\models\user.rb and add the method described in step 1 of instructions.
Open db/seeds.rb. Here we don't have to do anything in this.
just type rake db:seed in the console.
check whether editor? method is working or not. So for that start the rails console by typing $ rails console in the console.Then type
> mateo = User.find_by(email: 'firstname.lastname@example.org')
should return whole mateo object with it's all user values.
should return true. Becoz mateo is an editor.