[Rails] Re: Noob Question
On Mar 7, 10:12 pm, Bryan Crossland <bacrossl...@gmail.com> wrote:
> Exit the console and edit the class to inherit ActiveRecord::Base.
>
> class Foo < ActiveRecord::Base
>
> end
>
> Start the console again and re-run the command. In the bottom of that list
> you will find the method "where", inherited from ActiveRecord::Base.
>
> B.
Ok, now we're getting somewhere...
Looking at the source code for ActiveRecord::Base, I do NOT see
"where" defined on ActiveRecord::Base. Nor is it defined in any
superclass (Object). Nor do I see it defined in the docs (under
methods).
So where the heck is it coming from? And if it's not defined in the
docs, how would I know about it?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home