Questions tagged [rails-upgrade]

This is mainly deals with issues when upgrading the rails version.

40 questions
1
vote
2 answers

#= require not working after upgrade to Rails 5

I upgraded Rails 4.2.10 application to Rails 5. Solved errors with bundling and some deprecations. I am able to start the Rails Application, but when I try to load the Application, it fails with error, Invalid CSS after "#": expected id name, was "=…
1
vote
1 answer

Rails upgrade includes method behavior change

I've been digging for a couple days and haven't found a good explanation for this behavior change. I'm in the process of upgrading a Rails application from 3.2 to 5.2 this is code in a passing test from my rails 3 app. ps =…
Andrew Algard
  • 105
  • 1
  • 12
1
vote
1 answer

Upgrade Rails 3 to 5, scope block syntax

I'm upgrading an app from Rails 3.2 to 5.2, I need to have both versions running at the same time and have run into an issue with the scope block syntax. I've got this relationship on a Project model has_many :companies_projects, include:…
Andrew Algard
  • 105
  • 1
  • 12
1
vote
2 answers

Rspec - Check for the instance of ActiveRecord::Relation of a specific Model

In our application, we have used this expect_any_instance_of(Order::ActiveRecord_Relation) .to receive(:something) As we upgraded the application to rails 5.2 we are getting the following error NameError: private constant…
Deepak Mahakale
  • 22,834
  • 10
  • 68
  • 88
1
vote
0 answers

Upgrading to rails 5, mongodb as database

I am upgrading my rails version to 5.0 from 4.2. App uses mongoDB database. Upgraded mongoid version to 6.3.0. Do I have to create application_record.rb as we do for other activerecord databases, and inherit ApplicationRecord in all models? Should…
rAzOr
  • 300
  • 6
  • 19
1
vote
0 answers

migration from rails 3.1 to 3.2 with plugins and fix the deprecation warnings

I am working in a project with Ruby version 1.9.3 and Rails Version 3.1.12. Planning to Migrate the rails Version to 3.2.The issue encountered is with plugins; we have 6 plugins namely,…
1
vote
0 answers

Spree does not work with the protected_attributes gem installed

I am upgrading my application from rails 3.2 to rails 4. I am following this Railscast #415 Upgrading to Rails 4 When I tried to start my rails server after adding protected_attributes gem in my Gemfile spree is giving me this error and I am not…
0
votes
0 answers

Upgrading Rails Application from 5.0 to 7.0.4.3, NameError uninitialized constant

I recently upgraded my rails application from ruby 2.6.6 to ruby 3.2.2 and rails 5 to rails 7.0.4.3 After upgrading gems that were failing, I am now able to run rails s, but I get this error whenever I do: => Booting Puma => Rails 7.0.4.3…
0
votes
0 answers

Rails Legacy Upgrade NameError

I recently upgraded an old ruby app from rails 5 to rails 7. Ever since, I have been getting this error. It happens after I run rails s and access the application through the browser (seems like the application builds successfully, I only get the…
0
votes
2 answers

Psych errors after Rails version update

We recently updated a client's application from Rails 4 to rails 5. However, after running the test suite the following issue appeared whilst trying to create an object: Failure/Error: @ens_response = EnsResponse.create!( …
angelov_mm
  • 13
  • 2
0
votes
1 answer

Enum on model being loaded twice after upgrade to Rails 7

I've just upgraded to Rails 7, and suddenly I'm having a very odd issue with one of my models. This is the model (please ignore the terrible naming of the keys and the fact that this would probably be better-suited as a boolean – it's legacy code…
jeffdill2
  • 3,968
  • 2
  • 30
  • 47
0
votes
0 answers

Migrate rails application using ar-octopus gem to Rails v6.x.x

Did Rails Dev, migration rails app using ar-octopus to rails version 6/7. As I see there are no updates regarding the rails v6 in ar-actopus gem, did any tried to upgrade on own. Thanks in Advance.
0
votes
1 answer

Rails Upgrade 4.2 -> 5 - Bundler not able to resolve exact gem version

I'm getting this error in upgrading various gems, as I'm trying to move from 4.2.11.1 to 5.0.1. Sample error for actionpack: Bundler could not find compatible versions for gem "actionpack": In Gemfile: rails (= 5.0.1) was resolved to 5.0.1,…
Gagan93
  • 1,826
  • 2
  • 25
  • 38
0
votes
1 answer

Dependency Errors upgrading to Rails 6

I remove my Gemfile.lock, change my gem 'rails', '5.2' to gem 'rails', '6.0' and do bundle install. I get a lot of dependency errors. But I cannot understand them because they seem okay. I was getting errors like this: Bundler could not find…
0
votes
1 answer

Rails 5 and mystery requests every 30 seconds

After upgrading to Rails 5, I notice that every 30 seconds, a request to our root url comes in. Has anyone any idea what this could be? I checked a few things like closing all browsers, restarting my server, looking at our javascript session timeout…
ryan2johnson9
  • 724
  • 6
  • 21