Badminton on Rails
RSS icon Home icon
  • Rails RubyGem error

    Posted on March 18th, 2008 Raymond Law No comments

    If you run into this error in a Rails app:

    uninitialized constant Gem::Version::NUM_RE

    Add this to your environment.rb above the initializer:

    module Gem
      class Version
        NUM_RE = /\s*(\d+(\.\d+)*)*\s*/
      end
    end

    Credit goes to Ola Mork

    Leave a reply