docbrown/docs/backend/admin.md
rhymes 9210f6793b Improvements on dev docs (#2616)
* Correct installation documentation

* Add stylized titles

* Add some changes to the getting started documentation

* Add changes for the backend guide

* Add changes for the design guide

* Add testing / Q&A guide improvements

* Minor fixes to contributing docs

* More improvements to the general doc

* Improvements for frontend guide
2019-04-29 18:54:29 -04:00

653 B

title
Admin Panel

Accessing the admin panel

There is an admin panel located at http://localhost:3000/admin.

To access the panel, you must be logged with a user with the admin role activated.

To activate such a role, you can follow these instructions:

  • open the Rails console
rails console
  1. load the user object of for bob (or whatever the username is)
Loading development environment (Rails 5.2.3)
[1] pry(main)> user = User.find_by(username: "bob")
[2] pry(main)> user.add_role(:admin)
[3] pry(main)> user.save!

Now you'll be able to access the administration panel.