simple_json
simple_json copied to clipboard
Passing explicit status codes.
Is there a way to pass explicit status codes using this library?
As a work around, I've been using the following code in my action:
render status: :created
This seems to be working fine, but is there a way where I can achieve the same result by specifying an argument or option in template rather than action?
@shettytejas There is a work around i think.
# in simple_json.rb
controller.head :created