gpt4 book ai didi

ruby-on-rails - rails |安装 country_select gem

转载 作者:行者123 更新时间:2023-12-04 02:32:45 25 4
gpt4 key购买 nike

我在 Rails 应用程序中设置 gem 时遇到问题。我正在做以下事情:

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

尝试使用此处找到的 gem:
https://github.com/rails/country_select

我收到以下错误:
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)'

最佳答案

它不是作为 gem 安装的,因为它不是 gem,它是一个插件。

下面是 Rails 的安装方向

Rails3

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

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

关于ruby-on-rails - rails |安装 country_select gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4139366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com