I am in the process of updating my rails/active_scaffold app from rails 3.2 to 4.2. I am experiencing the following error that I was able to replicate by creating a simple new rails app and following the active_scaffold Quick Start instructions.
The problem happens when jquery-ui-rails is included in the Gemfile. *=> Booting WEBrick* *=> Rails 4.2.4 application starting in development on http://localhost:3000 <http://localhost:3000>* *=> Run `rails server -h` for more startup options* *=> Ctrl-C to shutdown server* *[2015-10-20 14:04:43] INFO WEBrick 1.3.1* *[2015-10-20 14:04:43] INFO ruby 2.1.6 (2015-04-13) [x86_64-darwin14.0]* *[2015-10-20 14:04:43] INFO WEBrick::HTTPServer#start: pid=75907 port=3000* *Started GET "/users/" for ::1 at 2015-10-20 14:04:44 -0700* * ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"* *Processing by UsersController#index as HTML* * (0.1ms) SELECT COUNT(*) FROM "users"* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_header.html.erb (151.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_column_headings.html.erb (1.8ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_messages.html.erb (0.5ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_messages.html.erb (3.1ms)* * User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 15 OFFSET 0* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_record.html.erb (6.2ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_pagination.html.erb (0.5ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list.html.erb (19.9ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/_list_with_header.html.erb (175.1ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/app/views/active_scaffold_overrides/list.html.erb within layouts/application (179.0ms)* *Completed 500 Internal Server Error in 237ms (ActiveRecord: 0.2ms)* *ActionView::Template::Error (Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( ui-bg_highlight-soft_100_eeeeee_1x100.png )` to `config/initializers/assets.rb` and restart your server):* * 2: <html>* * 3: <head>* * 4: <title>Newrails</title>* * 5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>* * 6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>* * 7: <%= csrf_meta_tags %>* * 8: </head>* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:193:in `check_errors_for'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:89:in `asset_path'* * actionview (4.2.4) lib/action_view/helpers/asset_url_helper.rb:292:in `image_path'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/vendor/assets/stylesheets/jquery-ui-theme.css.erb:4:in `_evaluate_template'* * sprockets (3.4.0) lib/sprockets/erb_processor.rb:26:in `call'* * sprockets (3.4.0) lib/sprockets/erb_processor.rb:13:in `call'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:75:in `call_processor'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:57:in `block in call_processors'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:56:in `reverse_each'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:56:in `call_processors'* * sprockets (3.4.0) lib/sprockets/loader.rb:134:in `load_from_unloaded'* * sprockets (3.4.0) lib/sprockets/loader.rb:60:in `block in load'* * sprockets (3.4.0) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'* * sprockets (3.4.0) lib/sprockets/loader.rb:44:in `load'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:20:in `block in initialize'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:47:in `yield'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:47:in `load'* * sprockets (3.4.0) lib/sprockets/bundle.rb:23:in `block in call'* * sprockets (3.4.0) lib/sprockets/utils.rb:183:in `dfs'* * sprockets (3.4.0) lib/sprockets/bundle.rb:24:in `call'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:75:in `call_processor'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:57:in `block in call_processors'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:56:in `reverse_each'* * sprockets (3.4.0) lib/sprockets/processor_utils.rb:56:in `call_processors'* * sprockets (3.4.0) lib/sprockets/loader.rb:134:in `load_from_unloaded'* * sprockets (3.4.0) lib/sprockets/loader.rb:60:in `block in load'* * sprockets (3.4.0) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'* * sprockets (3.4.0) lib/sprockets/loader.rb:44:in `load'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:20:in `block in initialize'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:47:in `yield'* * sprockets (3.4.0) lib/sprockets/cached_environment.rb:47:in `load'* * sprockets (3.4.0) lib/sprockets/base.rb:66:in `find_asset'* * sprockets (3.4.0) lib/sprockets/environment.rb:30:in `find_asset'* * sprockets (3.4.0) lib/sprockets/base.rb:92:in `[]'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:190:in `check_errors_for'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:159:in `block in stylesheet_link_tag'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:158:in `map'* * sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:158:in `stylesheet_link_tag'* * app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3482540107959751531_70351886738380'* * actionview (4.2.4) lib/action_view/template.rb:145:in `block in render'* * activesupport (4.2.4) lib/active_support/notifications.rb:166:in `instrument'* * actionview (4.2.4) lib/action_view/template.rb:333:in `instrument'* * actionview (4.2.4) lib/action_view/template.rb:143:in `render'* * actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout'* * actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:52:in `render_template'* * actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:14:in `render'* * actionview (4.2.4) lib/action_view/renderer/renderer.rb:42:in `render_template'* * actionview (4.2.4) lib/action_view/renderer/renderer.rb:23:in `render'* * actionview (4.2.4) lib/action_view/rendering.rb:100:in `_render_template'* * actionpack (4.2.4) lib/action_controller/metal/streaming.rb:217:in `_render_template'* * actionview (4.2.4) lib/action_view/rendering.rb:83:in `render_to_body'* * actionpack (4.2.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body'* * actionpack (4.2.4) lib/action_controller/metal/renderers.rb:37:in `render_to_body'* * actionpack (4.2.4) lib/abstract_controller/rendering.rb:25:in `render'* * actionpack (4.2.4) lib/action_controller/metal/rendering.rb:16:in `render'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'* * activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'* * /Users/nick/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'* * activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block in render'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'* * activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:43:in `render'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/extensions/action_controller_rendering.rb:14:in `render_with_active_scaffold'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/actions/list.rb:37:in `list_respond_to_html'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/actions/core.rb:383:in `block (3 levels) in respond_to_action'* * actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call'* * actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/actions/core.rb:379:in `respond_to_action'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/actions/list.rb:30:in `list'* * /Users/nick/.rvm/gems/ruby-2.1.6/bundler/gems/active_scaffold-c0a93658b329/lib/active_scaffold/actions/list.rb:12:in `index'* * actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'* * actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action'* * actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action'* * actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'* * activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call'* * activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call'* * activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'* * activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call'* * activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call'* * activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__'* * activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'* * activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'* * actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action'* * actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'* * activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'* * activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'* * activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'* * actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'* * actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'* * activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'* * actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process'* * actionview (4.2.4) lib/action_view/rendering.rb:30:in `process'* * actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch'* * actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'* * actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action'* * actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call'* * actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'* * actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve'* * actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve'* * actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each'* * actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve'* * actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call'* * rack (1.6.4) lib/rack/etag.rb:24:in `call'* * rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'* * rack (1.6.4) lib/rack/head.rb:13:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/flash.rb:260:in `call'* * rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'* * rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/cookies.rb:560:in `call'* * activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call'* * activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'* * activerecord (4.2.4) lib/active_record/migration.rb:377:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'* * activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__'* * activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'* * activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'* * actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'* * web-console (2.2.1) lib/web_console/middleware.rb:39:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'* * railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'* * railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'* * activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'* * activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'* * activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'* * railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'* * rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'* * rack (1.6.4) lib/rack/runtime.rb:18:in `call'* * activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'* * rack (1.6.4) lib/rack/lock.rb:17:in `call'* * actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'* * rack (1.6.4) lib/rack/sendfile.rb:113:in `call'* * railties (4.2.4) lib/rails/engine.rb:518:in `call'* * railties (4.2.4) lib/rails/application.rb:165:in `call'* * rack (1.6.4) lib/rack/lock.rb:17:in `call'* * rack (1.6.4) lib/rack/content_length.rb:15:in `call'* * rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'* * /Users/nick/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'* * /Users/nick/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'* * /Users/nick/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.7ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (26.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/_markup.html.erb (0.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/console.js.erb within layouts/javascript (15.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/main.js.erb within layouts/javascript (0.2ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.3ms)* * Rendered /Users/nick/.rvm/gems/ruby-2.1.6/gems/web-console-2.2.1/lib/web_console/templates/index.html.erb (31.0ms)* This happens when I include: ```code gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master' gem 'jquery-rails' gem 'jquery-ui-rails' ``` In my Gemfile Removing jquery-ui-rails makes the error go away, but I imagine I am missing out on some javascript functionality. Is jquery-ui-rails still necessary for active_scaffold + rails 4.2? Is there something special I need to include in my config.assets.precompile directive? I opened an issue in github a few days ago but thought perhaps someone on this list could help. https://github.com/activescaffold/active_scaffold/issues/448 Thanks! -Nick -- 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.
