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

StackOverflow https://stackoverflow.com/questions/13887958

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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top