ruby on rails - rake db:seed yields syntax error, unexpected '\n', expecting => -


when enter rake db:seed in terminal, receive:

syntaxerror: /users/-/src/-/db/seeds.rb:17: syntax error, unexpected '\n', expecting =>

tasks: top => db:seed

...where db/seeds.rb has:

category.create(kind: 'food/drink')        #line 9, above commented out category.create(kind: 'entertainment')  category.create(kind: 'organization') category.create(kind: 'business') category.create(kind: 'collegiate')  location.create(area: 'downtown nb')  location.create(area: 'college ave',  location.create(area: 'cook/douglass')     #line 17 location.create(area: 'livingston')  location.create(area: 'busch')  location.create(area: 'surrounding nb') location.create(area: 'out of town') 

a --trace shows:

rake db:seed --trace

** invoke db:seed (first_time)

** execute db:seed

** invoke db:abort_if_pending_migrations (first_time)

** invoke environment (first_time)

** execute environment

** execute db:abort_if_pending_migrations

rake aborted!

syntaxerror: /users/euphoriacomplex/src/venture/venture/db/seeds.rb:17: syntax error, unexpected '\n', expecting =>

you have typo on line 16th:

location.create(area: 'college ave', 

should be

location.create(area: 'college ave') 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -