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 <[email protected]> wrote: > 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 > > Is it because Builder and ERB are two different systems so that they > can't be mixed together? or because some bug result in the view paths > are not properly loaded in builder template > > Could anyone help me out? > My environment: > Rails: 2.3.2 > Ruby: 1.8.6 > > Thanks in advance, > Ray > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.

