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)
>
>                              ^


My migration file for LineItems table is this:

> class CreateLineItems < ActiveRecord::Migration
>   def change
>     create_table :line_items do |t|
>       t.integer :product_id
>       t.integer :cart_id
>       t.timestamps
>     end
>   end
> end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/f4XlY7oLa7gJ.
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