garry_tan

me!




Cheatsheet: Render a view outside of a controller

av = ActionView::Base.new(Rails::Configuration.new.view_path)
av.assigns[:foo] = “bar”
av.render “some/template/here”

Posted via email from Test Account | Comment »


April by David. A Monthly Theme. Powered by Tumblr.