Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails 6 support #3528

Open
pdornfel opened this issue May 16, 2023 · 1 comment
Open

rails 6 support #3528

pdornfel opened this issue May 16, 2023 · 1 comment

Comments

@pdornfel
Copy link

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!

@Matho
Copy link
Contributor

Matho commented May 19, 2023

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 #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 aee49a6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants