Rails-4-Upgrade pertains to users who are trying to upgrade an existing Ruby on Rails Application to the more recent version, like 4.0 and up.
Questions tagged [rails-4-upgrade]
13 questions
                    
                    2
                    
            votes
                
                1 answer
            
        Rails 4.0 PG::UnableToSend socket not open
I'm currently trying to upgrade a Rails 3.2 app to Rails 4.0.13 (ruby 2.3.5, PostgreSQL 9.4.13) and I'm getting this error when running my integration tests;
      :  PG::UnableToSend at /companies/get_current_firm
      :…
        
        map7
        
- 5,096
 - 6
 - 65
 - 128
 
                    2
                    
            votes
                
                1 answer
            
        enhancing the global environment task rails
On the application I am upgrading from Rails 3.2.22.4 to Rails 4.0.13, the following block of code for enhancing the global environment task has become a road-block by not working on the target Rails version:
Rails.application.class.rake_tasks do   …
        
        Prakash Murthy
        
- 12,923
 - 3
 - 46
 - 74
 
                    1
                    
            vote
                
                1 answer
            
        Problems upgrading Rails 4.0.0 to 4.0.x (4.0.13) - private method `include' called for ActionDispatch::Assertions:Module (NoMethodError)
I could not find a "direct" answer to this anywhere. Since I know there will be many other "Late Upgraders" to the party, I feel I need to get this out.
I had a Rails 4.0.0 app running Ruby 2.0.0-p247. After upgrading to 4.0.13, I ran into this…
        
        Eric Wanchic
        
- 2,046
 - 1
 - 23
 - 26
 
                    1
                    
            vote
                
                1 answer
            
        Updated gems, now getting error: ActionView::Template::Error (wrong number of arguments (2 for 1)):
Trying to update a project from Rails 3.2 to Rails 4.0. After updating some gems, I encountered some errors and deprecations, such as calling #scope with a hash when running 'rails s'. After fixing, 'rails s' works, but when I try to go to localhost…
        
        Justin
        
- 125
 - 10
 
                    1
                    
            vote
                
                3 answers
            
        Updating Rails 4.2 to 5.0.0 & sqlite3 gem will not load
When running rails server, I load this warning:
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Yet my…
        
        GMarx
        
- 473
 - 3
 - 13
 
                    1
                    
            vote
                
                1 answer
            
        Debug JRuby rack runtime error in tomcat
We recently upgraded an old rails app from rails 3 to 4.2, along with many other gem updates. Now I can't get my rails app to load any pages. We were on JRuby 9.1.0.0 but upgraded to 9.1.8.0. However, I'm hitting the same problem on both…
        
        Danesh
        
- 145
 - 7
 
                    0
                    
            votes
                
                0 answers
            
        Database connectivity issue on rails upgrade
I am trying to upgrade rails version from 4.2 to 5.0
While following upgrade steps, there's the connectivity issue related to database (postgres).
On running command rails app:update the following error shows up
rails…
        
        User
        
- 169
 - 1
 - 11
 
                    0
                    
            votes
                
                2 answers
            
        How to fix activeuuid gem error while upgrading from Rails4 to Rails5
I am updating my application from rails 4 to rails 5. My application is using activeuuid gem. The activeuuid gem is using alias_method_chain internally and this method is deprecated in rails 5. Now when I am trying to start rails console, I am…
        
        Harshwardhan Rathore
        
- 249
 - 2
 - 12
 
                    0
                    
            votes
                
                1 answer
            
        Rails 4.2 : How disable encryption for cookies
I recently upgraded my rails 3.2 app to rails 4.2. I face the issue of cookies set by new rails 4.2 is signed and  encrypted which I don't won't because my application interacts with other rails 3 apps. 
I want to reintroduce old way to created…
        
        Sachin R
        
- 11,606
 - 10
 - 35
 - 40
 
                    0
                    
            votes
                
                0 answers
            
        Rails 4 upgrade throwing InvalidAuthenticityToken
My application just upgraded to Rails 4 and we're starting to see random InvalidAuthenticityToken errors. I have done a bunch of investigating but not yet found a solution. Anyone know what happened and how to fix it?
Calling out things that…
        
        Marri
        
- 33
 - 5
 
                    0
                    
            votes
                
                1 answer
            
        jquery_datepicker not working with Rails 4
See the following repo for example project: https://github.com/aarona/date_picker
At first I thought the problem was caused by the model being tableless but when associating it with the database through a migration I still get an error:
wrong number…
        
        aarona
        
- 35,986
 - 41
 - 138
 - 186
 
                    0
                    
            votes
                
                1 answer
            
        Rails upgrade to 4.2 Stack too deep error from arel
I'm doing a rails upgrade and have been able to successfully get it to 4.1.16
Now to make the jump to 4.2... been able to successfully run bundle update but when I tried to run my specs, I'm getting a scanty SystemStackError as…
        
        x6iae
        
- 4,074
 - 3
 - 29
 - 50
 
                    0
                    
            votes
                
                1 answer
            
        Upgrading from Ruby on Rails 4.2.7.1 to 5.0.1 -- still tries to use railties 4.2.7.1
I'm creating a website but have accidentally installed Ruby on Rails version 4 instead of version 5 and would like to upgrade to the latest version in order to use a few of the features that are currently missing from the version I have on my…
        user7351238