Project

General

Profile

Actions

Feature #14534

closed

Upgrade to Rails 4.2

Added by Marwan Rabbaa almost 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Rails support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Hi,

I want to run redmine on rails 4.
For me (a rails / ruby newbie), it was not a short time task ;), but I'm shure i will rage against this with you help.

I want completed 4 steps, and with it I can run my application, but I have a HTTP/500 error on the welcome controller.

Started GET "/" for 83.217.232.12 at 2013-07-24 13:38:04 +0200
Processing by WelcomeController#index as HTML
WARNING: Can't mass-assign protected attributes for Setting: name
        app/models/setting.rb:173:in `find_or_default'
        app/models/setting.rb:108:in `[]'
        app/models/setting.rb:141:in `rest_api_enabled?'
        app/controllers/application_controller.rb:106:in `find_current_user'
        app/controllers/application_controller.rb:87:in `user_setup'
Completed 500 Internal Server Error in 3ms

NoMethodError (undefined method `[]' for nil:NilClass):
  app/models/setting.rb:95:in `value'
  app/models/setting.rb:108:in `[]'
  app/models/setting.rb:141:in `rest_api_enabled?'
  app/controllers/application_controller.rb:106:in `find_current_user'
  app/controllers/application_controller.rb:87:in `user_setup'

  • Firstly I remove version called in Gemfile for thos gems * rails * jquery-rails * i18n * coderay * fastercsv * builder
  • Secondly, I have added 3 gems (because remove on rails core, for fourth version of this framework). * gem "protected_attributes" * gem "actionpack-action_caching", github: "rails/actionpack-action_caching" * gem "rails-observer"
  • Thirdly, I have added config.eager_load to config/environments/*.rb (true on production, false on else)
  • Fourthly (and I'm not sure of this), I have remove 3 migrations (I have ot skill to rewrite them) * 105_build_projects_tree.rb * 018_set_doc_and_files_notifications.rb * 20110228000100_copy_repositories_log_encoding.rb

Have you ever tried to migrate redmine to rails 4


Related issues

Related to Redmine - Feature #15367: Replace outdated awesome_nested_set by gemClosed

Actions
Related to Redmine - Feature #14371: Drop Ruby 1.8.7 supportClosed

Actions
Related to Redmine - Feature #12097: Multi Thread SupportClosed

Actions
Related to Redmine - Defect #18174: Rails-4.1 branch merge into trunk (r13482) reverts trunk commitsClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #18192: LDAP tests not running with Rails 4.1ClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #18429: Error raised on project settings after project wiki is deletedClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #18275: First argument in form cannot contain nil or be empty error on revision viewClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Feature #14907: Rails 4.0 SupportClosed

Actions
Actions

Also available in: Atom PDF