Ruby on Rails Error - NoMethodError undefined method `gem_version' for Alchemy:Module

211 Views Asked by At

I have installed Ruby on a VPS (OVH hosted). I have successfully installed [Alchemy-CMS][1]

When trying to access the admin login, I got this error

NoMethodError undefined method `gem_version' for Alchemy:Module

Extracted source (around line #6):

  include Alchemy::Admin::Locale

  if Alchemy.gem_version <= Gem::Version.new("4.9")
    before_action { enforce_ssl if ssl_required? && !request.ssl? }
  end

Rails.root: /home/debian/alchemyadmin

I would be grateful for any help.

Thanks.

1

There are 1 best solutions below

0
fabriciofreitag On
  if Gem.loaded_specs['alchemy_cms'].version <= Gem::Version.new("4.9")
...