【问题标题】:Installing Community Engine for Rails 4 with Github Source使用 Github 源安装 Rails 4 社区引擎
【发布时间】:2014-10-23 19:46:29
【问题描述】:

我想将 CommunityEngine 用于我的一个社交网络项目,我正在 Rails 4 中执行此操作,现在在查看他们的文档后(针对 Rails4 分支): https://github.com/bborn/communityengine/tree/rails4

然后我按照步骤 1 将这一行放入我的 GemFile: gem "https://github.com/bborn/communityengine.git", :branch => "rails4"

还有关于配置应用名称的第 2 步...现在问题是当我执行“捆绑安装”时

Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find gem 'communityengine (>= 0) ruby' in
https://github.com/bborn/communityengine.git (at rails4).
Source does not contain any versions of 'communityengine (>= 0) ruby'

如何在我的 rails 4 应用中安装 communityengine gem?

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-4 gem rubygems


    【解决方案1】:

    要指向 github 存储库,您需要执行以下操作:

    gem 'community_engine', git: 'https://github.com/bborn/communityengine.git', branch: 'rails4'
    

    我已提交拉取请求以更改此分支的文档。

    【讨论】:

    • 我正要说我已经试过了.. 但不同的是我使用了 gem 'communityengine' .. 现在这个工作了,但我只需要将 rails 指定为 4.0.0 .. 我想知道他们是否可以更新它以使用 Rails 4.0.0 及更高版本.. 以及 gem 依赖项。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-14
    • 2012-12-14
    • 2012-04-29
    • 2014-05-16
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多