on demo site is possible to login with admin?
nunziofiore opened this issue · 2 comments
nunziofiore commented
on demo site is possible to login as admin?
I can't find user and password for demo admin
Nunzio
JaredCowan commented
Assuming you are signed up as basic user first and that your user is the first user you can do this.
- Open up your terminal of choice.
- Change into the directory of your app
- Type in
$ rails c
(This opens the rail console) - Then type in
$ User.first.update(is_admin: true)
Then try to login or refresh the page.
nunziofiore commented
Yes thank you but I know it :)
I was wondering if there was an Admin user for The online demo on heroku
Il mercoledì 18 febbraio 2015, Jared L Cowan notifications@github.com ha
scritto:
Assuming you are signed up as basic user first and that your user is the
first user you can do this.
- Open up your terminal of choice.
- Change into the directory of your app
- Type in $ rails c (This opens the rail console)
- Then type in $ User.first.update(is_admin: true)
Then try to login or refresh the page.
—
Reply to this email directly or view it on GitHub
#38 (comment)
.
Sent from Gmail Mobile