refinerycms icon indicating copy to clipboard operation
refinerycms copied to clipboard

rails 6 support

Open pdornfel opened this issue 2 years ago • 1 comments

Is refinerycms supported with rails 6? I am upgrading from rails 5 because I need to upgrade to ruby 3 and ruby 3 is not compatible with rails 5 and this rails 5 upgrade is breaking everything with refinery. specifically the railtie depenency in core. Any advice/guidance is MUCH appreciated. Thank you!

pdornfel avatar May 16 '23 16:05 pdornfel

Hi @pdornfel

Yes, Refinerycms supports Rails 6. BUT the support for Rails v6 is pushed only here on Github in the main branch and is not pushed to Rubygems.

The another problem is, that the main branch here, supports maximum Ruby 2.6.X, which is pretty old. If you want to upgrade to Rails 6.1.X and Ruby 3.X.Y you will have issues.

If you need Ruby 3.X, there is opened pull request https://github.com/refinery/refinerycms/pull/3518 - you can give it a try. Alternatively, here is my gist for ugprade to Rails 6.1.4 and Ruby 2.7.3 / Ruby 3.0.2 https://gist.github.com/Matho/3587bd01c14f0e0bf60bf4bca3b733ec It works partially, but not for all cases and is not recommended. I think the better solution would be give a try to the pull request.

Rails 6.0.2 and ruby-2.6.5 example repository you can find at https://github.com/refinery/refinerycms-example-app. If you want to use Docker (due to old ruby version) you can check the fork of the example repo at https://github.com/Matho/refinerycms-example-app

If you decide to use Docker, for example because of legacy combination of Rails and Ruby, you can find guide here https://github.com/refinery/refinerycms/commit/aee49a603860bf7d5fdb1532b9add5f4e7f839f4

Matho avatar May 19 '23 16:05 Matho