On 10 May 2010 21:34, Nadal <[email protected]> wrote:
> I am using rails3 edge.
>
> class user < AR
>  has_many :books
> end
>
> Following statement is failing in console.
>
> User.first.books.find(:conditions => {:title => 'ror'})

Don't you need find(:all, :conditions....) or is that a rails 3 change?

Colin

>
>
> ActiveRecord::RecordNotFound: Couldn't find Book without an ID
>
> It is such a basic thing that I am sure can't fail.
>
> Is it working fine for others?
>
> Please test it with rails edge and not with beta3.
>
> Thanks
>
> --
> 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.
>
>

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