FAQ: Authorization - Admin Role I

This community-built FAQ covers the “Admin Role I” exercise from the lesson “Authorization”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Ruby on Rails: Authentication

FAQs on the exercise Admin Role I

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Yeah I mean maybe just having a brain fart today :wilted_flower: but for the past two steps I have not found : Julian, Mateo or Freida in any of the db files least of all db/seeds. I suppose the work around to all this now that I think about it is: do the User.create step from the previous Newsstand iteration… you know the one:

User.create(first_name:‘Julian’, last_name: ‘Bee’, password: ‘Julian1’ , role: ‘user’)<- Not sure what t.string column was for role/privilege

and then populate it with Julian as the basic bee :honeybee:user and Mateo and Freida with the fancy functions :dizzy:

Luckily it seems as long as you write the correct formatting in the terminal window you’re allowed to progress but still… It equally seems too that you encounter an authenticity token error every time you log in with one of these guys. There is a work around but it defeats the purpose of writing authentication code in the first place :upside_down_face: I wrote about it in my News Stand strugs…