rubyrubygemssinatradelimiteractionpack

Sinatra error: "Gem::LoadError: Unable to activate actionpack-3.2.3, because activesupport-3.2.8 conflicts with activesupport (= 3.2.3) "


I would like to comma delimit large numbers in my Sinatra app, so I did some Googling and found that I can do so by adding the following:

require 'action_view/helpers/number_helper'

Then, it seems I am supposed to be able to do things like:

number_with_delimiter(12345678, :delimiter => ',')

However, I get the following error:

Gem::LoadError: Unable to activate actionpack-3.2.3, because activesupport-3.2.8 conflicts with activesupport (= 3.2.3)

I'm not sure how to fix this.


Solution

  • Use a Gemfile and bundler with your app. There you can explicitly set the versions of each gem. See http://gembundler.com for more information on how to do so.