Last active
December 24, 2015 01:59
-
-
Save clyfe/6727227 to your computer and use it in GitHub Desktop.
View context
This file contains hidden or 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
class Template < ActionView::Base | |
include ApplicationHelper | |
def initialize; super(ActionController::Base.view_paths) end | |
end | |
tmpl = Template.new() | |
tmpl.render(template: "foos/foo", layout: 'layouts/bar') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment