Skip to content

Instantly share code, notes, and snippets.

@pioz
Created June 13, 2012 21:48
Show Gist options
  • Save pioz/2926686 to your computer and use it in GitHub Desktop.
Save pioz/2926686 to your computer and use it in GitHub Desktop.
Generate HTML pages using rails without a webserver
ENV['RAILS_ENV'] = 'development'
require '/Users/pioz/Code/ecommerce/config/application.rb'
app = Megiston::Application.initialize!
session = ActionDispatch::Integration::Session.new(app)
session.get '/'
puts session.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment