tessad
tessad

Reputation: 1229

trying to create a new rails admin user on heroku console

In the heroku console I'm entering

Admin.create(email:‘[email protected]’,username: ‘Me’,password:’pass’,password_confirmation:’pass’)

When I run this I get

SyntaxError: (irb):16: syntax error, unexpected tIVAR, expecting keyword_do or '{' or '('
...reate(email:‘[email protected]’,username: ‘Me’,p...
...                               ^
(irb):16: syntax error, unexpected tLABEL, expecting '='
[email protected]’,username: ‘Me’,password:’pass...

Can anyone help with what's wrong with my Admin.create code?

Thanks

Upvotes: 0

Views: 136

Answers (1)

gef
gef

Reputation: 7141

Looks like dodgy quotation marks, or spacing? Does this work? (copy & paste)

Admin.create(email: '[email protected]', username: 'Me', password: 'pass', password_confirmation: 'pass')

Upvotes: 1

Related Questions