Re: Spaces in Ruby on Rails and how to avoid them!

Frederick Cheung
Sat, 15 Mar 2008 20:43:08 -0000

>
> > Let''s say I have a model named "Product". How would
I know what
> > methods it supports?
>
> Product.methods or Product.instance_methods
>

With the caveat that with a language like ruby the methods might not
exist until you call them (Eg the dynamic finders are created by
method_missing when you first call them). Rails makes fairly heavy use
of that sort of thing.

Fred