plutus icon indicating copy to clipboard operation
plutus copied to clipboard

Rails 7 compatibility

Open PatrickMcSweeny opened this issue 3 years ago • 11 comments
trafficstars

I am attempting to upgrade an existing application to Rails 7, and when I attempt to start rails server in my terminal I get the following error:

gems/plutus-0.17/app/controllers/plutus/entries_controller.rb:14:in <class:EntriesController>': undefined local variable or method unloadable' for Plutus::EntriesController:Class (NameError)

I did some digging in the activesupport source files, and it looks like the 'unloadable' method has been removed in the 7.0 branch.

PatrickMcSweeny avatar Feb 16 '22 22:02 PatrickMcSweeny

Hi @PatrickMcSweeny How is it going on Rails 7? Are you using it on production ?

kirantpatil avatar Oct 06 '22 03:10 kirantpatil

Hi @mbulat Any updates on supporting Rails 7 ?

kirantpatil avatar Oct 10 '22 06:10 kirantpatil

I had given it a try when 7.0 came out, but a lot of gem dependencies at the time had issues. I might try again assuming gems have had time to update when I get a chance.

If anyone wants to give it a shot, feel free to send in a pull request.

mbulat avatar Oct 10 '22 18:10 mbulat

Awesome, many thanks! Rails 7 updates merged. Anyone with any issues, please post back.

mbulat avatar Oct 11 '22 20:10 mbulat

Hi @mbulat,

How to update the gem in application ?

Will you release new version ?

Thanks.

kirantpatil avatar Oct 12 '22 04:10 kirantpatil

At the moment, master branch is supporting Rails 7 so you can use the git path in the Gemfile.

Usually I give things a little while to make sure there are no outstanding problems and then I'll bump the version number and publish a new gem once it's fairly stable.

mbulat avatar Oct 12 '22 17:10 mbulat

Can this now be released as a new version. It's been a while since rails has been released.

amit avatar Jul 06 '23 15:07 amit

Problem still persisting.

/Users/mo/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/plutus-0.17/app/controllers/plutus/accounts_controller.rb:14:in
 <class:AccountsController>': undefined local variable or method
  `unloadable' for Plutus::AccountsController:Class (NameError)

Rails Version 7.0 Ruby 3.1.2 Plutus 0.17

moseslucas avatar Jul 20 '23 13:07 moseslucas

Try using the git version of the gem. Unfortunately, the owner/maintainer of the gem is not releasing a new version of this gem!

amit avatar Jul 20 '23 14:07 amit

Hi all! Sorry for the delays, I'll try and get to this today and get a release out.

mbulat avatar Jul 20 '23 14:07 mbulat

Any plan to release?

crifat avatar Nov 08 '23 07:11 crifat