On Miércoles, 19 de Agosto de 2009 14:21:57 CCH escribió: > Hi Sergio > > Have solved the previous NameError, on launching > http://0.0.0.0/customers > > I got the following error > > ActionController::RoutingError in Customers#list > > Showing vendor/plugins/active_scaffold/frontends/default/views/ > _list_header.html.erb where line #8 raised: > > No route matches > {:controller=>"customers", :_method=>:get, :action=>"new"} > > Extracted source (around line #8): > > 5: <% next if controller.respond_to? link.security_method and ! > controller.send(link.security_method) -%> > 6: <% next if link.action == 'new' && params[:nested].nil? && > active_scaffold_config.list.always_show_create %> > 7: <% next if link.action == 'show_search' && > active_scaffold_config.list.always_show_search %> > 8: <%= render_action_link(link, new_params) -%> > 9: <% end -%> > 10: > 11: <%= loading_indicator_tag(:action => :table) %> > > Trace of template inclusion: vendor/plugins/active_scaffold/frontends/ > default/views/list.html.erb > > RAILS_ROOT: /home/chee/Aptana Studio Workspace/crm2009 > Application Trace | Framework Trace | Full Trace > > > FYI, I had already added in routes.rb > > map.customers '/customers', :controller => 'customers', :action => > 'list' > > Any help will be appreciated.
You don't need to add that route, add a active_scaffold's resource: map.resources :customers, :active_scaffold => true > > CCH > http://cch4rails.blogspot.com > > -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 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 -~----------~----~----~----~------~----~------~--~---
