On Martes, 1 de Septiembre de 2009 15:34:13 RyanF escribió:
> Ok I was able to reproduce the issue:
>
> When I am in the admin section, if I click on any of the tables I have
> set up and also the users page the application crashes saying the
> default:
> We're sorry, but something went wrong.
>
> We've been notified about this issue and we'll take a look at it
> shortly.
>
> Any other insights?  This was working just fine a few months ago.

You get that page because you are on production mode, but the actual error is 
in the log file.

>
> On Sep 1, 4:06 am, "[email protected]"
>
> <[email protected]> wrote:
> > Hi,
> >
> > I would guess that the following line is generating the exception:
> > @params_for[:controller] = '/' + @params_for[:controller] unless
> > @params_for[:controller].first(1) == '/' # for namespaced controllers
> >
> > Therefore if you can reproduce that issue I would recommend to dig a
> > little bit deeper to find the root cause.
> >
> > --
> > Volker
> >
> > On 31 Aug., 20:35, RyanF <[email protected]> wrote:
> > > I have used active scaffold in the past and haven't touched this
> > > website in quite some time.  I am hoping I have some gem out of date.
> > > This is what my production.log says, :
> > >
> > > ActionView::TemplateError (undefined method `[]' for
> > > #<Enumerable::Enumerator:0x7fec88299448>) on line #3 of app/views/
> > > active_scaffold_overrides/_list_header.rhtml:
> > > 1: <% if active_scaffold_config.action_links.any? { |link| link.type
> > > == :table } -%>
> > > 2:   <div class="actions">
> > > 3:     <% new_params = params_for(:action => :table) %>
> > > 4:     <% active_scaffold_config.action_links.each :table do |link| -
> > > %>
> > > 5:       <% next if controller.respond_to? link.security_method and !
> > > controller.send(link.security_method) -%>
> > > 6:       <%= render_action_link(link, new_params) -%>
> > >
> > >     /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
> > > core_ext/string/access.rb:43:in `first'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/helpers/
> > > view_helpers.rb:104:in `params_for'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/app/views/active_scaffold_overrides/_list_header.rhtml:
> > > 3:in
> > > `_run_rhtml_47app47views47active_scaffold_overrides47_list_header46rhtm
> > >l' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:326:in `send'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:326:in `compile_and_render_template'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:301:in `render_template'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:260:in `render_file'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:275:in `render_without_active_scaffold'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_view_rendering.rb:44:in `render'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > partials.rb:59:in `render_partial_without_active_scaffold'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/benchmarking.rb:30:in `benchmark'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > partials.rb:58:in `render_partial_without_active_scaffold'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_view_rendering.rb:54:in `render_partial'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:287:in `render_without_active_scaffold'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_view_rendering.rb:44:in `render'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/frontends/default/views/
> > > list.rhtml:3:in
> > > `_run_rhtml_47vendor47plugins47active_scaffold47frontends47default47vie
> > >ws47list46rhtml'
> > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:326:in `send'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:326:in `compile_and_render_template'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:301:in `render_template'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
> > > base.rb:260:in `render_file'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:806:in `render_file'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:741:in `render_with_no_layout'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/layout.rb:256:in `render_without_benchmark'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/benchmarking.rb:50:in
> > > `render_without_active_scaffold'
> > >     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/benchmarking.rb:50:in
> > > `render_without_active_scaffold'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_controller_rendering.rb:13:in `render'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_controller_rendering.rb:22:in `render_action'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:748:in `render_with_no_layout'
> > >     /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
> > > deprecation.rb:44:in `silence'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:747:in `render_with_no_layout'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/layout.rb:244:in `render_without_benchmark'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/benchmarking.rb:50:in
> > > `render_without_active_scaffold'
> > >     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/benchmarking.rb:50:in
> > > `render_without_active_scaffold'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/extensions/
> > > action_controller_rendering.rb:13:in `render'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/actions/list.rb:
> > > 37:in `list'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:135:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:135:in `custom'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:167:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:167:in `respond'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:161:in `each'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:161:in `respond'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/mime_responds.rb:105:in `respond_to'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/actions/list.rb:
> > > 35:in `list'
> > >     /var/www/motorwheel.precisionpartnersinc.com/releases/
> > > 20090707151908/vendor/plugins/active_scaffold/lib/actions/list.rb:8:in
> > > `index'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:1095:in `send'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/base.rb:1095:in `perform_action_without_filters'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:632:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:634:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:634:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:634:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:638:in `call_filter'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:438:in `call'
> > >     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/
> > > action_controller/filters.rb:637:in `call_filter'
> > >    
> >
> > ...
> >
> > read more »
>
> 
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to