-
-
Notifications
You must be signed in to change notification settings - Fork 37
First Steps
Andreas Nedbal edited this page Aug 20, 2024
·
1 revision
Now visit your newly created instance at localhost:3000 or the configured hostname and register a new account.
To give yourself administrator permissions there's two supported ways:
Rake
RAILS_ENV=... bundle exec rake 'justask:admin[your_username]'
your_username
being your username and RAILS_ENV
being set to either development
or production
You can find more rake tasks to use here!
Rails Console
RAILS_ENV=... bundle exec rails c
> @user = User.first
> @user.add_role :administrator
> @user.save!