Skip to content

Instantly share code, notes, and snippets.

@nex3
Created Nov 5, 2009
Embed
What would you like to do?
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