I\'m trying to generate a JSON response that includes some HTML. Thus, I have /app/views/foo/bar.json.erb:
{
someKey: \'some value\',
someH
I came across this thread when I was trying to render an XML partial in another xml.builder view file. Following is a nice way to do it
xml.items :type => "array" do
@items.each do |item|
xml << render(:partial => 'shared/partial.xml.builder', :locals => { :item => item })
end
end
And yeah... Full file name works here as well...