Skip to content

How to make xray-rails work with rails 7 and ruby 3+ #119

@deepakmahakale

Description

@deepakmahakale

Adding it as an issue so that this helps

Working on

Ruby 3.1.3
Rails 7.0.4
Sprockets 4.1

ESbuild

Gemfile

gem "xray-rails", git: "https://github.com/brentd/xray-rails.git", branch: "bugs/ruby-3.0.0"

app/views/layouts/application.html.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

#108 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions