0

I installed xray-rails on a Rails 5.1 app but pressing the keyboard shortcut does nothing. I already cleared cached assets rails tmp:clear. Any ideas?

João Souza
  • 4,032
  • 3
  • 25
  • 38

1 Answers1

1

Rails 5.1 dropped jQuery as a dependency. Add it to the Gemfile explicitly:

group :development do
  gem 'xray-rails'
  gem 'jquery-rails' # add it outside the group if you need it globally
end

Then import it in application.js:

//= require jquery

And you can Cmd + Shift + X again.

João Souza
  • 4,032
  • 3
  • 25
  • 38