Hi--
On Aug 25, 2008, at 1:56 PM, Sean Cribbs wrote:
>
> I run into that occasionally when using .js.erb templates. Just give
> the fully-qualified partial name (e.g. "child_row.html.haml") and it
> should work.
>
> Sean
>
> s.ross wrote:
>> Given the snippet below, on Rails 2.0.2, I'm getting a template not
>> found (Couldn't find template file for children/_child_row) error. Is
>> there something obvious I'm missing here?
>>
>> format.json {
>> render :json => {:new_row => render_to_string(:partial =>
>> 'child_row', :object => @children, :layout => false)}
>> }
>>
>>
Thx. I believe it was related to the :layout => false part of the
statement. Rails is still, IMO, not template-language agnostic
everywhere :(
Anyhoo, my screw-up.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---