-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
How to get JSON body as a params in action? #118
Comments
assigned to @brennovich |
Some things appeared when @brennovich and I were investings this. Probably @nilcolor didn't configure the But some things aren't clear, and maybe @joneslee85 can help us to figure them out.
Are this assumptions right? ps: |
Yep, as @carloslopes said @nilcolor, please make sure to uncomment this option in your Once you get this done you'll start to get your params :) |
Issue related to the accept problem: #123 |
@brennovich @carloslopes - thank you. |
Thanks all for helping me out, this community is uber! I close this ticket now |
I've create really simple Lotus app (https://gist.github.com/nilcolor/21ead88d1517e824f103). And I'd like to receive JSON data (via POST's body). But... controller receives request, responds with OK but params are empty... (not really empty - it's full Rack params hash but without data I need).
If params are posted in URL - they are readable via
params
arg. Even if action isaccept :json
btwThe text was updated successfully, but these errors were encountered: