Re: [Rails] render problem in builder template

2009-11-19 Thread Darian Shimy
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.

[Rails] render problem in builder template

2009-11-19 Thread Ray
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