Editor 1

Could someone please explain how to do step 3?
I am completely lost.

  1. Go to app\models\user.rb and add the method described in step 1 of instructions.
  2. Open db/seeds.rb. Here we don’t have to do anything in this.
    just type rake db:seed in the console.
  3. 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: ‘mateo@email.com’)

should return whole mateo object with it’s all user values.

Then type

> mateo.editor?

should return true. Becoz mateo is an editor.