I have the same problem with AS 2.2 on Rails 2.2.2 but I haven't this
code in 'generic_view_paths.rb':
> active_scaffold_paths.find_template_without_active_scaffold
> (original_template_path.split('/',2).last, format)

My application have admin section with this 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 edit and new not works.
Error in development.log:

ActionView::TemplateError (undefined method `find_template' for
#<ActionView::PathSet:0xb6a56598>) on line #14 of vendor/plugins/
active_scaffold/frontends/default/views/_form.rhtml:
11:   </li>
12:   <% else -%>
13:   <li class="form-element <%= 'required' if column.required? %>">
14:     <%= render :partial => form_partial_for_column
(column), :locals => { :column => column } -%>
15:   </li>
16:   <% end -%>
17:   <% end -%>

Could you help me?

Thanks!

On Feb 20, 7:23 pm, Tys von Gaza <[email protected]> wrote:
> 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