search for: merb_logger

Displaying 4 results from an estimated 4 matches for "merb_logger".

2007 Sep 21
3
merb 0.4.0 - redirect problems
...throwing an error? Controller: ----------------------- def do redirect "http://www.ebay.com" end Error Output: ------------------------- Internal server error 500 uninitialized constant Merb::ControllerMixin::MovedTemporarily in /lib/merb/mixins/controller.rb: def redirect( url ) MERB_LOGGER.info("Redirecting to: #{url}") raise MovedTemporarily, url end Thanks Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070921/6d288670/attachment.html
2007 Aug 10
1
serving static files
It seems that Merb is sending static files with Mongrel::DirHandler. (mongrel_handler.rb:52) if get_or_head and @files.can_serve(path_info) # File exists as-is so serve it up MERB_LOGGER.info("Serving static file: #{path_info}") @files.process(request,response) I haven''t done benchmarks and I''ve hardly glanced at DirHandler''s code but the comment on DirHandler#send_file bothers me: # Sends the contents of a file back to the user. Not...
2007 Aug 30
1
problems with ''no Accept header'' request
...erb was giving me an error for each upload. It turns out that Flash doesn''t seem to send an Accept header and Merb''s responder crashes because it''s trying to split the missing Accept header. responder.rb line 37 def initialize(accept_header, params={}) MERB_LOGGER.info accept_header @accepts = Responder.parse(accept_header) @params = params @stack = {} end @accepts seems to be later on used in negotiate_content() l84, negotiate_by_format() l92, negotiate_by_accept_header l103 What''s the proper way of dealing...
2007 Sep 18
10
Routes
hi all, I want to move some routing tasks out of the router and into the controller. The goal is to make Merb feel less like mod_rewrite and give the user more control at the controller. The new Router is simple: it takes the path_info (not the whole request) then outputs a controller class and some parameters from the path matching. The rest of the routing would be done at the controller level.