Try this (leading slash): render :partial => '/foo/bar'
Darian Shimy
--
http://www.darianshimy.com
http://twitter.com/dshimy
On Thu, Nov 19, 2009 at 4:20 AM, Ray wrote:
> Hello guys,
>
> I have a file named "_bar.html.erb" and located at "app/views/foo/"
> In "app/views/some_path/sample.atom.
Hello guys,
I have a file named "_bar.html.erb" and located at "app/views/foo/"
In "app/views/some_path/sample.atom.builder", neither form of the
followings worked as expected:
render :partial => 'foo/bar'=> MissingTemplate was raised,
strange!
render :template => 'foo/_bar' => nil
2 matches
Mail list logo