I modified my controllers/exceptions.rb file. I added an action for
my exception, but obviously this isn't enough to make it work. in my
Things controller I "raise FileMissing" and I get the error
"undefined constant Things:FileMissing". What do I need to do to
make this work?
Thanks!
class Exceptions < Merb::Controller
# handle NotFound exceptions (404)
def not_found
render :format => :html
end
# handle NotAcceptable exceptions (406)
def not_acceptable
render :format => :html
end
def file_missing
render :format => :html
end
end
--
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en.