Displaying 2 results from an estimated 2 matches for "rendermixin".
Did you mean:
render_mixin
2007 Dec 13
1
Merb::RenderMixin#set_status refers to non-existent RESPONSE_CODES constant
#set_status
http://merb.devjavu.com/browser/trunk/lib/merb/mixins/render.rb#L270
refers to a non-existent constant. I tried, while creating #359, to
make things OK, but I failed. I started by using STATUS_CODES instead,
then used #[] instead of calling a method named STATUS_CODES, then I
found out that during the call to #inherited
2007 Dec 13
1
How to set response code
Hi !
I''m trying to return a simple 201 Created status to the caller, but I
can''t seem to do it. I use curl from the command line with the
--verbose option, and the response is really 200 OK.
My controller code:
class Observations < Application
def create(feature, node, observation_type)
# Do some work...
response.status = "201 Created"