0
0
zero-blog/controller/method_not_allowed.rb

11 lines
251 B
Ruby
Raw Normal View History

2013-10-20 22:04:01 +02:00
module Routes
class MethodNotAllowed
def self.call(session)
session.response.status = 405
session.response.content_type = 'text/html'
session.response.body = 'Method not supported by this resource!'
nil
end
end
end