johannix
johannix

Reputation: 29658

Rails | installing country_select gem

I'm having trouble setting up a gem in my rails app. I'm doing the following:

gem 'country_select', :git => 'git://github.com/rails/country_select.git'

Trying to make use of the gem found here:

https://github.com/rails/country_select

I get the following error:

Could not find gem 'country_select (>= 0, runtime)' in git://github.com/rails/country_select.git (at master).
Source does not contain any versions of 'country_select (>= 0, runtime)'

Upvotes: 10

Views: 5262

Answers (2)

JamesDS
JamesDS

Reputation: 728

I just forked and gemified this plugin, if it is of any use to you.

# Gemfile
gem "country-select"

Upvotes: 30

rwilliams
rwilliams

Reputation: 21497

It's not installing as a gem because it's not a gem, it's a plugin.

Below are the install direction for Rails

Rails3

rails plugin install https://github.com/rails/country_select.git

Rails2

ruby script/plugin install https://github.com/rails/country_select.git

Upvotes: 10

Related Questions