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
<%= render(:partial => ‘my_view/date_range_section’) %>
_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.