Skip to content

JBuilder partial implied underscore #314

@baweaver

Description

@baweaver

With the current function of jBuilder, you have to name a file _file.json.jbuilder to use json.partial! 'file/file'

Is there a way to remove the implied underscore in the current implementation?

If not: What would it take for this to be added? I can lend some assistance to it within a week.

If so: Can we add something to the readme to make these options more easily accessible?

Why the ask? Say you want to just render the show action template in a collection like an index or in another jBuilder altogether. Making a _show file feels like a bit of a hackaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions