Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Getting Rails HTML from Controllers (without instantiation) programmatically in a rake task
session = ActionDispatch::Integration::Session.new(Rails.application)
session.get('/some/url/your/app/has')
body = session.response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.