Displaying 3 results from an estimated 3 matches for "http_status_cod".
Did you mean:
http_status_code
2008 Nov 17
2
Can't seem to test http error codes
in application.rb
rescue_from ActiveRecord::RecordNotFound { |e| http_status_code
(:missing, e) }
def http_status_code(status, exception)
@exception = exception
respond_to do |format|
format.html { render :template => "shared/status_#
{status.to_s}", :status => status }
format.any { head status }
end
end
in a controller
projec...
2006 Oct 31
5
mongrel parser for server response
...tp server response. This is part of my modified version
of http11_parser.rl. In particular what would be better than using
''any'' to match the status text?
http_number = (digit+ "." digit+) ;
HTTP_Version = ("HTTP/" http_number) >mark %http_version ;
Http_status_code = (digit){3} >mark %http_status_code ;
Http_status_text = any* >mark %http_status_text ;
Request_Line = (HTTP_Version " " Http_status_code " " Http_status_text CRLF) ;
field_name = (token -- ":")+ >start_field %write_field;
field_value = any* >st...
2006 Aug 24
3
Mousehole stuff
Hey everyone,
I''m using mousehole for the first time today (love the artwork, btw) and I
seem to be having problems with Camping and Markaby. When I go to the Apps
page I get:
Camping Problem! MouseHole::Controllers::RApps.GET TypeError
/Users/tzaharia/Sites/mouseHole/lib/mouseHole/views.rb:78:in `+'': can''t
convert String into Array:bla bla bla...
The line in question