On Mar 25, 10:12 pm, dv <dviglion...@gmail.com> wrote:
> Hey all,
>
> if I do something like this in one of my controllers like users
> controller:
>
> if self.respond_to :hello
>
> and I have the hello method declared in application controller, which
> all my controllers inherit from:
>
> def hello
> end
>
> Then why does the interpreter say:
>
> uninitialized constant Mime::HELLO
>

Because the method for checking whether an instance responds to a
method is respond_to? (respond_to is a rails thing to do with what
format to use for a response)

Fred
> Thanks for response

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

Reply via email to