mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
guide had invalid api
This commit is contained in:
@ -320,7 +320,7 @@ and create an account by logging in normally, then run the commands:
|
||||
RAILS_ENV=production bundle exec rails c
|
||||
|
||||
# (in rails console)
|
||||
> me = User.find_by_username_or_email('myemailaddress@me.com')[0]
|
||||
> me = User.find_by_username_or_email('myemailaddress@me.com')
|
||||
> me.activate #use this in case you haven't configured your mail server and therefore can't receive the activation mail.
|
||||
> me.admin = true
|
||||
> me.save
|
||||
|
Reference in New Issue
Block a user