Thursday, November 19, 2009

[Rails] render problem in builder template

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate