Uninitialized constant Mime::HELLO

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

Thanks for response

On Mar 25, 10:12pm, dv [email protected] wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs