check the location of template . this may be cause .

N A R E N

On Tue, Jun 16, 2009 at 11:55 AM, gberz3 <[email protected]> wrote:

>
> Hi All,
>
> Could someone please explain to me why I'm getting an
> ActionView::TemplateError when I try to use AJAX to update the
> interface while using the following code:
>
>        <div id="building[<%=building.id%>][controls]">
>                <%building.controls.each do |control|%>
>                        <%=render :partial => "control", :locals =>
> {:control => control}%>
>                <%end%>
>        </div>
>
> I have the following structure:  Site -> Building -> Control.  Each
> loops through it's collection of items and renders a partial for
> each.  From Site to Building works just fine.  However, going from
> Building on to Control throws the template error.
>
> It is noteworthy that Controls get added just fine, and if I refresh
> the page, all the code works -- but for some reason when I try to do
> the AJAX thing, the partial (not the "rjs" file) throws an error.
>
> Any thoughts?  My apologies if this is too vague.
>
> Best.
> >
>

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

Reply via email to