You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried several different approaches to figure out which gem was causing the error. I knew it wasn't ruby 2.6.2 because my older Rails app worked just fine. I then created a new Rails 5.1.5 app, and suddenly it wasn't working. I checked the Gemfile.lock and saw that rack-cors was set to 1.0.3, and when I compared this to my older app I noticed that the same gem was set to 1.0.2. I set the gem to 1.0.2 and the error went away. I'm not sure what changed between versions, but something is causing the error.
I am trying to get this set up, and I did everything I was supposed to: installed rack-cors gem and uncommented the code in cors.rb. However, I can't do anything in the app now. I keep getting this error:
I have a different application that uses Rails 5.1.5, and it worked as expected. Since the application I'm working on now uses Rails 5.2.3 I wondered if maybe there is an issue with Rails 5.2.3. I updated my old app to Rails 5.2.3 using rails app:update and sure enough I get the same error now.
Has anyone else seen this? I can't find anything online about this.
The text was updated successfully, but these errors were encountered:
marcnjaramillo
changed the title
Unitialized constant Rack::Cors Rails 5.2.3
Unitialized constant Rack::Cors Rails 5.2.3 - edit: specific to rack-cors 1.0.3
Apr 29, 2019
UPDATE: Issue is specific to
rack-cors
1.0.3I tried several different approaches to figure out which gem was causing the error. I knew it wasn't
ruby
2.6.2 because my older Rails app worked just fine. I then created a new Rails 5.1.5 app, and suddenly it wasn't working. I checked theGemfile.lock
and saw thatrack-cors
was set to 1.0.3, and when I compared this to my older app I noticed that the same gem was set to 1.0.2. I set the gem to 1.0.2 and the error went away. I'm not sure what changed between versions, but something is causing the error.I am trying to get this set up, and I did everything I was supposed to: installed
rack-cors
gem and uncommented the code incors.rb
. However, I can't do anything in the app now. I keep getting this error:I have a different application that uses Rails 5.1.5, and it worked as expected. Since the application I'm working on now uses Rails 5.2.3 I wondered if maybe there is an issue with Rails 5.2.3. I updated my old app to Rails 5.2.3 using
rails app:update
and sure enough I get the same error now.Has anyone else seen this? I can't find anything online about this.
The text was updated successfully, but these errors were encountered: