Post (singular with capital) is the model

On Mon, Sep 13, 2010 at 9:02 AM, Felix Schäfer <[email protected]>wrote:

>
> Am 13.09.2010 um 14:58 schrieb Awijeet Mr.:
>
> > if  I write i.class it returns Post, so I thought module will be a
> > method in post_controller.rb. But it's not
>
> If i is of the type Post, i.module will call the method module from the
> Post object in app/models/post.rb, not from a PostsController object as you
> seem to think it will.
>
> Felix
>
> --
> 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]<rubyonrails-talk%[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