Skip to content

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

@atopdev

Description

@atopdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions