-
Notifications
You must be signed in to change notification settings - Fork 336
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
Rails 5 api-only ignoring rabl files #687
Comments
+1 Rails - 5.0.2 Getting an empty response. Works fine when we manually render the JSON using
|
Someone commented this here and then deleted it. Adding it here as reference since it solved this issue. Adding |
Example app that hits this bug: https://github.com/droberts-ada/rabl-test-app The problem appears to be that in API mode all of the view functionality is stripped out, including all the code that glues together controllers and views. The reason that including the Might be this is a pretty straightforward fix. |
I wrote an API app in Rails 4.2 and used rabl to render output. I've recently update the app to use Rails 5 (generated a new app and copied the code over), and since then - all of my API calls get an empty response. I've put a debugger in the controller code to ensure that there is data to render. Does rabl work with Rails 5?
The text was updated successfully, but these errors were encountered: