On Tue, Jan 17, 2012 at 1:05 PM, Agis A. <[email protected]> wrote:

> I see.
>
> Now I've upgraded my seeds.rb file, to add some entry into the line_items
> table and see how it works.
> Actually I've added this line: *LineItem.create (product_id: '8',
> cart_id: '1')*
> *
> *
> but when I run rake db:seed I get this error:
>
> rake db:seed
>> rake aborted!
>> /rails/depot/db/seeds.rb:55: syntax error, unexpected tLABEL
>>
>>> LineItem.create (product_id: 8, cart_id: 1)
>>
>>
Remove the space before the '('

  LineItem.create(product_id: 8, cart_id: 1)

In newer versions of Ruby (1.9.3 and maybe earlier), this is not longer
allowed.

Peter

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to