On 20 February 2011 13:23, rogi <[email protected]> wrote:
> No:
>
> ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column:
> ressorts.worker_id: SELECT  "ressorts".* FROM "ressorts" WHERE
> ("ressorts".worker_id = 1) LIMIT 1

What command did you type to get this return value? It's certainly
weird if you asked for "Worker.first"... (or Worker.all.first)

> irb(main):037:0> Ressort
> => Ressort(id: integer, name: string, description: text, created_at:
> datetime, updated_at: datetime)

...And what if you display "Worker"?


I think your migrations would help too... I really don't think you've
quite got all the structure in place yet.

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