Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing explicit status codes. #6

Open
shettytejas opened this issue Jun 3, 2023 · 1 comment
Open

Passing explicit status codes. #6

shettytejas opened this issue Jun 3, 2023 · 1 comment

Comments

@shettytejas
Copy link

shettytejas commented Jun 3, 2023

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?

@AZQ1994
Copy link
Member

AZQ1994 commented Jun 26, 2023

@shettytejas There is a work around i think.

# in simple_json.rb
controller.head :created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants