Skip to content

Does not work with Rails 7 api_only = true #532

@noctivityinc

Description

@noctivityinc

Clean install of a new Rails 7 api_only app:

config.api_only = true

Added the jbuilder gem and generated a scaffold that has this line:

render json: @practice_tests, status: :ok

But the jbuilder files are not rendered - simply ignored. I believe it has to do with the views not being loaded in Rails 7 api only mode. Any thoughts on how to get this to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions