Created
May 21, 2014 19:04
-
-
Save ragaskar/3ec13eea2bdce1f07ad3 to your computer and use it in GitHub Desktop.
Getting Rails HTML from Controllers (without instantiation) programmatically in a rake task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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