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)}
>        }
>
>
> TIA
>
> Steve
>
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to