rails-devise-roles
rails-devise-roles copied to clipboard
access denied as admin
I signed in as First User, Then I clicked user link and got "Access Denied". What is wrong? How to fix it?
Sorry to hear of the problem. I tried and there's no problem with the application.
Perhaps you need to run rake db:reset to create the admin user again?
Assuming you have not made any changes from the app that is generated by Rails Composer.
I get this message when trying to run rake db:seed on my heroku production env:
ActiveRecord::SchemaMigration Load (9.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
User Load (5.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
(4.7ms) BEGIN
(0.8ms) ROLLBACK
rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Email can't be blank, Password can't be blank
This succeeds when working locally though... But can't seed the db on heroku, the parameters i set on the secrets file do not get sent somehow.