Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)'
like image 871
johannix Avatar asked Nov 09 '10 22:11

johannix


2 Answers

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

# Gemfile
gem "country-select"
like image 133
JamesDS Avatar answered Nov 15 '22 18:11

JamesDS


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
like image 36
rwilliams Avatar answered Nov 15 '22 19:11

rwilliams