RESOLVED

You need to have the active_scaffold call in each of the child
classes, as such:

class SupervisorAssignmentsController < EventAssignmentsController
  active_scaffold :event_assignments do |config|
    setup_scaffold config
  end
end

Each of the child classes calls a new class method called
setup_scaffold, that does just that.


On Jun 2, 7:17 am, Matt Culbreth <[email protected]> wrote:
> Thanks Sergio.  I renamed my files (yes I had overwritten some
> templates) but I'm still having the same problem.
>
> Here's what part of my index.html.erb file looks like for the main
> controller action.  Only the first <div> block (the
> "event_assignments"> works.  The other two, which subclass from
> EventAssignmentsController, do not work and give that message.  I
> wonder if I need to have an active_scaffold config in those
> controllers now?
>
>                 <div class="widget">
>                         <div id="event_title" 
> class="staffing_widget_title"><%=
> @event_title %></div>
>                         <div id="event_warning"></div>
>                         <div id="event_assignments" class="widget_content" >
>                                 <%= render :active_scaffold => 
> 'event_assignments',
>                                         :constraints => {:event_id => 
> params[:id], :job_type_id => 6} %>
>                         </div>
>                 </div>
>                 <div class="widget">
>                         <div id="director_title" 
> class="staffing_widget_title"><%=
> @director_title %></div>
>                         <div id="director_warning"></div>
>                         <div id="director_assignments" class="widget_content" 
> >
>                                 <%= render :active_scaffold => 
> 'director_assignments',
>                                         :constraints => {:event_id => 
> params[:id], :job_type_id => 1} %>
>                         </div>
>                 </div>
>                 <div class="widget">
>                         <div id="supervisor_title" 
> class="staffing_widget_title"><%=
> @supervisor_title %></div>
>                         <div id="supervisor_warning"></div>
>                         <div id="supervisor_assignments" 
> class="widget_content" >
>                                 <%= render :active_scaffold => 
> 'supervisor_assignments',
>                                         :constraints => {:event_id => 
> params[:id], :job_type_id => 2} %>
>                         </div>
>                 </div>
>
> On Jun 1, 8:14 am, "Sergio Cambra .:: entreCables S.L. ::."
>
>
>
> <[email protected]> wrote:
> > Have you overridden some templates? Templates were renamed from rhtml to
> > html.erb extension, and now render(:super) doesn't work in rhtml templates.
>
> > On Lunes, 1 de Junio de 2009 13:29:52 Matt Culbreth escribió:
>
> > > Hello Friends,
>
> > > I've got a Rails / ActiveScaffold app that has recently broken on
> > > Rails 2.3.2 and the latest edition of ActiveScaffold.
>
> > > On one of my pages I have 5 Embedded Scaffolds, 4 of which inherit
> > > from a parent called EventAssignments.  The subclasses are
> > > ParkingAssignments, DirectorAssignments, and a couple others.
>
> > > I'm getting these Rails errors on each of the inherited (child)
> > > controller scaffolds:
>
> > >         Template is missing
>
> > >         Missing template parking_assignments/list.erb in view path app/
> > > views
>
> > > All of my subclasses look like this:
>
> > >         class ParkingAssignmentsController <
> > > EventAssignmentsController
> > >         end
>
> > > This was working fine (for a couple years now) until this latest
> > > upgrade.  Any ideas?  It looks like ActiveScaffold isn't finding the
> > > right inheritance path or something.
>
> > > Thanks in advance!
>
> > > Here's the more complete console output:
>
> > >         Start rendering component ({:action=>"table", :params=>
> > > {:eid=>"48fe4dbfe80d5fbe4e87da5cef0978b6"},
>
> > >                 :controller=>"parking_assignments"}):
>
> > >         Processing ParkingAssignmentsController#table (for 127.0.0.1
> > > at 2009-06-01 07:23:03) [GET]
> > >                   Parameters:
> > > {"eid"=>"48fe4dbfe80d5fbe4e87da5cef0978b6", "id"=>nil}
>
> > >         ActionView::MissingTemplate (Missing template
> > > parking_assignments/list.erb in view path app/views):
> > >                   app/views/event_staffing/index.rhtml:58:in
> > > `_run_rhtml_app47views47event_staffing47index46rhtml'
>
> > >         Rendering rescues/layout (internal_server_error)
>
> > >         End of component rendering
>
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to