Displaying 1 result from an estimated 1 matches for "bluetrain".
Did you mean:
bluetin
2010 Oct 20
7
How can I render a template outside of a controller in Rails 3?
..._path}.html.erb", :locals => params)
end
The error:
ActionView::Template::Error: ActionView::Template::Error
from
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/whiny_nil.rb:48:in
`method_missing''
from
/Users/mikegerstenblatt/Desktop/bluetrain/lib/test.html.erb:17:in
`_lib_test_html_erb__366962844_2173671680_68830''
from
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_view/template.rb:135:in
`send''
from
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_view/template.rb:135:in
`render'...