I have the same problem with AS 2.2 on Rails 2.2.2:
ActionView::TemplateError (undefined method `find_template' for
#<ActionView::PathSet:0xb674dc84>) on line #14 of vendor/plugins/
active_scaffold/frontends/default/views/_form.rhtml:

but I haven't this code in 'generic_view_paths':
> active_scaffold_paths.find_template_without_active_scaffold
> (original_template_path.split('/',2).last, format)

My application have a admin section developed with active scaffold:
This section have two controller: user and role. So in routes.rb:
map.namespace :admin do |admin|
   admin.resources :users, :active_scaffold => true
   admin.resources :roles, :active_scaffold => true
end
List and show views are ok but new and edit generate error: 'Request
Failed (code 500, Internal Error)'

Could you help me?

Thanks!

> Fixed this by changing line 11 in generic_view_paths.rb:
>           active_scaffold_paths.find_template_without_active_scaffold
> (original_template_path.split('/',2).last, format)
> to
>           active_scaffold_paths.find_template_without_active_scaffold
> (original_template_path.split('/').last, format)
>
> Not sure what consequences this will have, but it seems to be working
> so far.
>
> Tys

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

  • Vi... Mike Gaffney
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Tys von Gaza
        • ... Tys von Gaza
        • ... Tys von Gaza
          • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
          • ... Enrico
          • ... Enrico
          • ... Jon Mischo
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to