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