Skip to content

Instantly share code, notes, and snippets.

@nex3
Created November 5, 2009 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nex3/226606 to your computer and use it in GitHub Desktop.
Save nex3/226606 to your computer and use it in GitHub Desktop.
RAILS_LIVES_HERE = File.expand_path("~/code/rails")
$: << File.join(RAILS_LIVES_HERE, 'activesupport/lib')
$: << File.join(RAILS_LIVES_HERE, 'actionpack/lib')
require 'rubygems'
require 'action_controller'
require 'action_view'
base = ActionView::Base.new('templates')
base.content_for(:layout) {"stuff"}
base.render(:file => 'template')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment