simple_json icon indicating copy to clipboard operation
simple_json copied to clipboard

Passing explicit status codes.

Open shetty-tejas opened this issue 2 years ago • 1 comments

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?

shetty-tejas avatar Jun 03 '23 05:06 shetty-tejas

@shettytejas There is a work around i think.

# in simple_json.rb
controller.head :created

AZQ1994 avatar Jun 26 '23 14:06 AZQ1994