Skip to content

Instantly share code, notes, and snippets.

@ragaskar
Created May 21, 2014 19:04
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