rake db:seed 产生语法错误,意外的 '\n',期待 =>

rake db:seed yields syntax error, unexpected '\n', expecting =>

当我在终端输入 rake db:seed 时,我收到:

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

Tasks: TOP => db:seed

...其中 db/seeds.rb 有:

Category.create(kind: 'Food/Drink')        #line 9, everything above is 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 显示:

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 =>

第 16 行有错别字:

Location.create(area: 'College Ave',

应该是

Location.create(area: 'College Ave')