On Tue, 06 May 2014 16:15:10 +0200 Sergio Cambra <[email protected]> wrote:
> I have fixed this issue and added rails 4.1.0 to test battery. Let me know if > you find > any issue. Thank you, Sergio! Now single-element lists works well (my tests are green for them :)). But now I have another issue, with list calculations: Showing /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_calculations.html.erb where line #6 raised: no implicit conversion of nil into Array Extracted source (around line #6): <tr id="<%= active_scaffold_calculations_id %>" class="active-scaffold-calculations"> <% columns.each do |column| -%> <% if column.calculation? %> <td id="<%= active_scaffold_calculations_id(:column => column) %>"><%= render_column_calculation(column) %></td> <% else %> <td> </td> <% end -%> Trace of template inclusion: /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list.html.erb, /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_with_header.html.erb, /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/list.html.erb Rails.root: /home/korobkov/work/devel/gems/fremantle/spec/dummy Full stacktrace: /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/finder.rb:428:in `+' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/finder.rb:428:in `calculate_query' actionpack (4.1.0) lib/abstract_controller/helpers.rb:70:in `calculate_query' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/helpers/view_helpers.rb:522:in `column_calculation' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/helpers/view_helpers.rb:529:in `render_column_calculation' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_calculations.html.erb:6:in `block in __home_korobkov__bundler_ruby_______bundler_gems_active_scaffold______cef_a_d_app_views_active_scaffold_overrides__list_calculations_html_erb__3250022695431025341_69911132318860' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_calculations.html.erb:4:in `each' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_calculations.html.erb:4:in `__home_korobkov__bundler_ruby_______bundler_gems_active_scaffold______cef_a_d_app_views_active_scaffold_overrides__list_calculations_html_erb__3250022695431025341_69911132318860' actionview (4.1.0) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.0) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.0) lib/action_view/template.rb:339:in `instrument' actionview (4.1.0) lib/action_view/template.rb:143:in `render' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.0) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.0) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.0) lib/action_view/helpers/rendering_helper.rb:32:in `render' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/extensions/action_view_rendering.rb:122:in `render_with_active_scaffold' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list.html.erb:33:in `__home_korobkov__bundler_ruby_______bundler_gems_active_scaffold______cef_a_d_app_views_active_scaffold_overrides__list_html_erb___1779685970933005161_69911138773160' actionview (4.1.0) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.0) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.0) lib/action_view/template.rb:339:in `instrument' actionview (4.1.0) lib/action_view/template.rb:143:in `render' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.0) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.0) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.0) lib/action_view/helpers/rendering_helper.rb:32:in `render' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/extensions/action_view_rendering.rb:122:in `render_with_active_scaffold' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/_list_with_header.html.erb:34:in `__home_korobkov__bundler_ruby_______bundler_gems_active_scaffold______cef_a_d_app_views_active_scaffold_overrides__list_with_header_html_erb___1756767720946618417_69911140157920' actionview (4.1.0) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.0) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.0) lib/action_view/template.rb:339:in `instrument' actionview (4.1.0) lib/action_view/template.rb:143:in `render' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.0) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.0) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.0) lib/action_view/renderer/renderer.rb:21:in `render' actionview (4.1.0) lib/action_view/helpers/rendering_helper.rb:32:in `render' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/extensions/action_view_rendering.rb:122:in `render_with_active_scaffold' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/app/views/active_scaffold_overrides/list.html.erb:1:in `__home_korobkov__bundler_ruby_______bundler_gems_active_scaffold______cef_a_d_app_views_active_scaffold_overrides_list_html_erb___4477744587697197459_69911140450240' actionview (4.1.0) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.0) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.0) lib/action_view/template.rb:339:in `instrument' actionview (4.1.0) lib/action_view/template.rb:143:in `render' actionview (4.1.0) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.0) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.0) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' actionview (4.1.0) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' actionview (4.1.0) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.0) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.0) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.0) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.0) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.0) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.0) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.0) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.0) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.0) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.0) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /usr/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (4.1.0) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:40:in `render' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/extensions/action_controller_rendering.rb:14:in `render_with_active_scaffold' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/actions/list.rb:37:in `list_respond_to_html' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/actions/core.rb:250:in `block (3 levels) in respond_to_action' actionpack (4.1.0) lib/action_controller/metal/mime_responds.rb:258:in `call' actionpack (4.1.0) lib/action_controller/metal/mime_responds.rb:258:in `respond_to' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/actions/core.rb:246:in `respond_to_action' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/actions/list.rb:30:in `list' /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-12468cef0a7d/lib/active_scaffold/actions/list.rb:12:in `index' actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:215:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:215:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.0) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch' actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action' actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call' actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call' railties (4.1.0) lib/rails/engine.rb:514:in `call' railties (4.1.0) lib/rails/railtie.rb:194:in `public_send' railties (4.1.0) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call' omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!' omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call' omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.0) lib/active_record/migration.rb:380:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.0) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.0) lib/rails/engine.rb:514:in `call' railties (4.1.0) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' puma (2.8.2) lib/puma/server.rb:490:in `handle_request' puma (2.8.2) lib/puma/server.rb:361:in `process_client' puma (2.8.2) lib/puma/server.rb:254:in `block in run' puma (2.8.2) lib/puma/thread_pool.rb:92:in `call' puma (2.8.2) lib/puma/thread_pool.rb:92:in `block in spawn_thread' I'm ready to give any source code and additional information you think would be useful for debugging the issue. thanks in advance, -- Andrey Korobkov -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
