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

Not able to get the rendered result in Rails console #718

Open
atopdev opened this issue Feb 20, 2019 · 1 comment
Open

Not able to get the rendered result in Rails console #718

atopdev opened this issue Feb 20, 2019 · 1 comment

Comments

@atopdev
Copy link

atopdev commented Feb 20, 2019

I am trying to get the rendered result in Rails console.

Rabl.render(@post, 'api/v1/posts/show', view_path: 'app/views', format: :xml)

But it fails due to this issue:
NameError (undefined local variable or method `request' for #Rabl::Engine:0x000...)

I can't figure out what this means.

Please help me to fix it so that I can get the result.

@atopdev
Copy link
Author

atopdev commented Feb 22, 2019

@nesquena Please check the issue and help me to get sorted out.

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

1 participant