Questions tagged [rails-upgrade]

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

40 questions
0
votes
1 answer

Active-record error after rails upgrade undefined method `each' for nil:NilClass and undefined method `include?' for nil:NilClass

I upgrade rails 4.2.10 to 6.0 step by step. But when I try to upgrade rails 5.2.4.4 to 6.0 I cant query like Object.all it gives me undefined method 'each' for nil:NilClass error. When I try to call Object it gives me undefined method 'include?' for…
0
votes
0 answers

Stack level too deep on upgrading rails 3.1.10 to 3.2.0

I am getting the following errors after upgrading my rails application from 3.1.10 to 3.2.0. rails console is opening fine. And, I am able to execute code in console. However, When I run rails server and open page in browser. It fails and shows the…
0
votes
1 answer

Upgrading to Rails 5, can't resolve dependencies

Upgrading from Rails 4.2.10 to Rails 5.1.4 results in the error message below. I am not sure how t resolve the dependencies. The ruby version is 2.5.1. Rails 4.2.10 runs without issue and bundle upgrade runs without returning any errors. Update:…
mr. jman
  • 121
  • 3
  • 15
0
votes
1 answer

Serialise hash with dates as YAML rails

TL;DR: Rails 5.1, Ruby 2.4.0 is serialising a hash including Time objects with quotes around the string representation of the time. These quotes weren't there in Rails 2.3, Ruby 1.8.7 and break my app; how do I get rid of them? Context and…
rwold
  • 2,216
  • 1
  • 14
  • 22
0
votes
1 answer

Rails 5.1.4 after upgrade DuplicateMigrationNameError

I recently updated a Rails 4.2 app to 5.1.4. After upgrading, whenever I try to run rake db:migrate, I get a DuplicateMigrationNameError. The first few times, the error pointed to a file so I just changed the name of the migration class and the file…
0
votes
1 answer

Nested input disappears when upgrading to activeadmin 1.0

I have a form that, when maximally simplified, looks like this. ActiveAdmin.register Foo do form do |f1| f1.inputs 'DeepFoos' do f1.has_many :deep_foos do |f2| f2.input :name f2.inputs "DeeperFoos for #{f2.object.name}"…
Alex Altair
  • 3,246
  • 3
  • 21
  • 37
0
votes
1 answer

Rails Server producing error on Home Page after rails 5 upgrade

I have attempted to upgrade from rails 4.2 to 5. my ruby version and rails version are now both upgraded, and I've attempted to run through what I believe to be most of the upgrade steps. When I run rails server, the server will boot up but when I…
BB500
  • 549
  • 2
  • 6
  • 24
0
votes
1 answer

Could not find compatible versions for gem "rack"

I am attempting to update my app to Rails 5.0.1. After attempting to run bundle update, the error below appears, but there is no rack gem. How can I get this to resolve? Error: Bundler could not find compatible versions for gem "rack": In…
Sauron
  • 6,399
  • 14
  • 71
  • 136
-1
votes
2 answers

Change in response from serializers after rails upgrade to 4.2.2 from 4.1.9

I was upgrading my rails application from Rails 4.1.9 to 4.2.2.In rails 4.1.9 rspec was green.After the upgrade when i ran the test, i got a couple of rspec failures. Rails version = 4.2.2 Ruby version = 2.2.4 rspec = 3.0.0 Following are the gems…
-3
votes
1 answer

How to upgrade rails without test cases

I'm going to upgrade rails from 4.0 to 4.1 and then 4.2. However, the current system does not have any test cases. And it is not easy and time consuming to write tests before the upgrade. Is there anything I can do except following the guideline to…
SilentCanon
  • 626
  • 4
  • 11
1 2
3