Skip to content

Question regarding handle_html_requests #9

@aruprakshit

Description

@aruprakshit

render "layouts/application" if request.format.symbol == :html

Doesn't this line causes Filter chain halted as :handle_html_requests rendered or redirected for you too? I am not seeing the point of it. As far as I know two render calls from the same action doesn't work or am I missing something here?

I thought just this would work too.

def index
  render inline: "", layout: 'application'
end

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