Well, it seems my code was being executed (it had to have been, but
the debugger sure didn''t want to show me!)
After adding many more breakpoints, apparently I found a position in
the partial where a breakpoint was valid. Now why the breakpoint in
the parent that was calling the render :partial wouldn''t allow me to
step into, I don''t know.
So, disregard this post. Sorry.
On May 6, 6:15 pm, michael_teter
<michael.te...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Howdy.
>
> I''ve got a controller action that calls
> render :template => "my_view/errors"
>
> errors.rhtml simply renders a partial
> <%= render(:partial => ''error_list_section'')
%>
>
> _error_list_section.rhtml does a few things, and renders another
> partial:
> <%= render(:partial =>
''my_view/date_range_section'') %>
>
> PROBLEM:
> _date_range_section.rhtml only seems to be called once, the first time
> I hit the page. Subsequent calls to this page (with varying
> parameters) do run through _error_list_section.rhtml, but they
don''t
> seem to run through _date_range_section.
>
> I''m using NetBeans IDE, running WEBrick in debug mode (in JRuby).
I
> have breakpoints set at the call to render partial for the date
> section, and I also have breakpoints in the partial itself.
>
> I hit the breakpoints the first time I view the page, but any further
> calls to the page (with different "?month=4" don''t stop
me inside the
> partial. It really appears that the render partial
> _date_range_section is just not being processed.
>
> Any ideas?
>
> Thanks much.
> Michael
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---