Open whisere opened 5 years ago
We are running our Spotlight instance @ Stanford under rails 5.2.2 and ruby 2.5.3.
Are you getting this error running a new application or upgrading an existing application?
Also, just to be sure, make sure you have copied app database migrations from spotlight.
$ bundle exec rake spotlight:install:migrations
$ bundle exec rake db:migrate
Thank you! I tried new and exiting application, they both have the same results. Running the two commands above worked! How to upgrade an existing application? I can't find the related doc? Thanks!
Does spotlight work under these versons: ruby 2.5.3, rails 5.2.2
reported error: NoMethodError (undefined method `current_exhibit=' for I18n::Backend::ActiveRecord::Translation(Table doesn't exist):Class Did you mean? current_scope=):
activerecord (5.2.2) lib/active_record/dynamic_matchers.rb:22:in
method_missing' /home/user/.rvm/gems/ruby-2.5.3/bundler/gems/spotlight-b26e1684c1f1/app/controllers/concerns/spotlight/controller.rb:15:in
set_exhibit_locale_scope' activesupport (5.2.2) lib/active_support/callbacks.rb:426:inblock in make_lambda' activesupport (5.2.2) lib/active_support/callbacks.rb:198:in
block (2 levels) in halting' actionpack (5.2.2) lib/abstract_controller/callbacks.rb:34:inblock (2 levels) in <module:Callbacks>' activesupport (5.2.2) lib/active_support/callbacks.rb:199:in
block in halting' activesupport (5.2.2) lib/active_support/callbacks.rb:513:inblock in invoke_before' activesupport (5.2.2) lib/active_support/callbacks.rb:513:in
each' activesupport (5.2.2) lib/active_support/callbacks.rb:513:ininvoke_before' activesupport (5.2.2) lib/active_support/callbacks.rb:131:in
run_callbacks' actionpack (5.2.2) lib/abstract_controller/callbacks.rb:41:inprocess_action' actionpack (5.2.2) lib/action_controller/metal/rescue.rb:22:in
process_action' actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:34:inblock in process_action' activesupport (5.2.2) lib/active_support/notifications.rb:168:in
block in instrument' activesupport (5.2.2) lib/active_support/notifications/instrumenter.rb:23:ininstrument' activesupport (5.2.2) lib/active_support/notifications.rb:168:in
instrument' actionpack (5.2.2) lib/action_controller/metal/instrumentation.rb:32:inprocess_action' actionpack (5.2.2) lib/action_controller/metal/params_wrapper.rb:256:in
process_action' activerecord (5.2.2) lib/active_record/railties/controller_runtime.rb:24:inprocess_action' actionpack (5.2.2) lib/abstract_controller/base.rb:134:in
process' actionview (5.2.2) lib/action_view/rendering.rb:32:inprocess' actionpack (5.2.2) lib/action_controller/metal.rb:191:in
dispatch' actionpack (5.2.2) lib/action_controller/metal.rb:252:indispatch' actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:52:in
dispatch' actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:34:inserve' actionpack (5.2.2) lib/action_dispatch/journey/router.rb:52:in
block in serve' actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:ineach' actionpack (5.2.2) lib/action_dispatch/journey/router.rb:35:in
serve' actionpack (5.2.2) lib/action_dispatch/routing/route_set.rb:840:incall' warden (1.2.8) lib/warden/manager.rb:36:in
block in call' warden (1.2.8) lib/warden/manager.rb:34:incatch' warden (1.2.8) lib/warden/manager.rb:34:in
call' rack (2.0.6) lib/rack/tempfile_reaper.rb:15:incall' rack (2.0.6) lib/rack/etag.rb:25:in
call' rack (2.0.6) lib/rack/conditional_get.rb:25:incall' rack (2.0.6) lib/rack/head.rb:12:in
call' actionpack (5.2.2) lib/action_dispatch/http/content_security_policy.rb:18:incall' rack (2.0.6) lib/rack/session/abstract/id.rb:232:in
context' rack (2.0.6) lib/rack/session/abstract/id.rb:226:incall' actionpack (5.2.2) lib/action_dispatch/middleware/cookies.rb:670:in
call' activerecord (5.2.2) lib/active_record/migration.rb:559:incall' actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' activesupport (5.2.2) lib/active_support/callbacks.rb:98:inrun_callbacks' actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in
call' actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:incall' actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in
call' web-console (3.7.0) lib/web_console/middleware.rb:135:incall_app' web-console (3.7.0) lib/web_console/middleware.rb:22:in
block in call' web-console (3.7.0) lib/web_console/middleware.rb:20:incatch' web-console (3.7.0) lib/web_console/middleware.rb:20:in
call' actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:incall' railties (5.2.2) lib/rails/rack/logger.rb:38:in
call_app' railties (5.2.2) lib/rails/rack/logger.rb:26:inblock in call' activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in
block in tagged' activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:intagged' activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in
tagged' railties (5.2.2) lib/rails/rack/logger.rb:26:incall' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in
call' actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:incall' request_store (1.4.1) lib/request_store/middleware.rb:19:in
call' actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:incall' rack (2.0.6) lib/rack/method_override.rb:22:in
call' rack (2.0.6) lib/rack/runtime.rb:22:incall' activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in
call' actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:incall' actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in
call' rack (2.0.6) lib/rack/sendfile.rb:111:incall' railties (5.2.2) lib/rails/engine.rb:524:in
call' puma (3.12.0) lib/puma/configuration.rb:225:incall' puma (3.12.0) lib/puma/server.rb:658:in
handle_request' puma (3.12.0) lib/puma/server.rb:472:inprocess_client' puma (3.12.0) lib/puma/server.rb:332:in
block in run' puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'Thanks!