I find it really useful to query the objects themselves. 

"hello".methods for example will how you methods available to call on that 
string, etc etc 

Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
New video up now at http://sensei.zenunit.com/ real fastcgi rails deploy 
process! Check it out now!


On 07/03/2011, at 1:28 PM, tinkerer13 <[email protected]> wrote:

> Hi,
> 
> Total Ruby noob, trying to figure something out.  Looking at the docs
> for ActiveRecord:Base, I see no mention of a "where" method in the
> method list.  Yet one is available.  I think that "where" is part of
> the ActiveRecord:QueryMethods.
> 
> So my question is twofold... first, how is "where" an available method
> on my object subclassed from ActiveRecord:Base?  Is QueryMethods a
> mixin?
> 
> Second, looking at the documentation for ActiveRecordBase, how would I
> know that "where" is available or how to access it?  I realize it's
> talked about in the text of the doc, but in general, how would I know
> what methods are available to an object from a mixin?
> 
> THanks in advance for any help.
> 
> -- 
> 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