igorkasyanchuk / rails_db

Rails Database Viewer and SQL Query Runner
https://www.railsjazz.com/
MIT License
1.46k stars 111 forks source link

Add Support for Rails 6 #99

Closed addisonmartin closed 4 years ago

addisonmartin commented 4 years ago

When installing this gem in a Ruby on Rails 6.0 application, it breaks the entire application. The following error is thrown when attempting to visit any page:

Sprockets::FileNotFound couldn't find file 'codemirror/modes/sql' with type 'application/javascript'

I suspect this has something to do with Rails 6 using webpacker by default.

igorkasyanchuk commented 4 years ago

Try new version "2.1.0"

addisonmartin commented 4 years ago

Hi, thank you for your response. The issue is still not fixed when using version 2.1.0. The new error is similar, but different:

Sprockets::FileNotFound couldn't find file 'javascripts/codemirror' with type 'application/javascript'

This occurs in application.html.erb at the stylesheet link tag: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>

igorkasyanchuk commented 4 years ago

@addisonmartin what about rails_db-2.1.1.gem ?

addisonmartin commented 4 years ago

Version 2.1.1 fixed it. Thank you!