Another thing you could try to change is,

class Admin::WorkshopsController < ApplicationController
 layout 'admin'
 active_scaffold :workshop do |config|
   config.nested.add_link("Workshop Dates", [:workshop_instances])
 end
end

class Admin::WorkshopInstancesController < ApplicationController
   layout 'admin'
   active_scaffold :workshop_instance
end


On Tue, Jan 20, 2009 at 9:01 AM, Bluenine <[email protected]> wrote:

>
> Changed case on my controllers and still nothing has changed, sorry.
>
> On Jan 20, 2:52 pm, yairgo <[email protected]> wrote:
> > The I in Workshopinstances is not capitalized.  The reason it works
> > when you go to the workshopinstances page is because inside of the
> > controller you specified,
> > active_scaffold :WorkshopInstance <-- capital I
> >
> > class Admin::WorkshopinstancesController < ApplicationController
> >   layout 'admin'
> >   active_scaffold :WorkshopInstance
> > end
> >
> > On Jan 20, 7:09 am, Bluenine <[email protected]> wrote:
> >
> > > I get the following error when I try to add a new entry to my Workshop
> > > form. WorkshopInstances exists because I can view and add new entries
> > > to it. I'm using Rails 2.2.2.
> >
> > > ActionView::TemplateError  (Could not find
> > > Admin::WorkshopInstancesController or
> > > Admin::WorkshopInstanceController) on line #14 of vendor/plugins/
> > > active_scaffold/frontends/default/views/_form_association.rhtml:
> >
> > > My controllers are as follows:
> >
> > > class Admin::WorkshopsController < ApplicationController
> > >   layout 'admin'
> > >   active_scaffold :workshop do |config|
> > >     config.nested.add_link("Workshop Dates", [:workshopinstances])
> > >   end
> > > end
> >
> > > class Admin::WorkshopinstancesController < ApplicationController
> > >   layout 'admin'
> > >   active_scaffold :WorkshopInstance
> > > end
>
> >
>

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