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].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to