## Adding it as an issue so that this helps Working on Ruby 3.1.3 Rails 7.0.4 Sprockets 4.1 **ESbuild** **Gemfile** ```ruby gem "xray-rails", git: "https://github.com/brentd/xray-rails.git", branch: "bugs/ruby-3.0.0" ``` **app/views/layouts/application.html.erb** ```erb <%= javascript_include_tag 'xray', nonce: true, "data-turbo-track": "reload", defer: true if Rails.env.development? %> <%= stylesheet_link_tag 'xray', nonce: true if Rails.env.development? %> ``` ## For Rails 6 refer the following link https://github.com/brentd/xray-rails/pull/108#issuecomment-980440080