简体   繁体   中英

Installing Community Engine for Rails 4 with Github Source

I wanted to utilize CommunityEngine for a social network project of mine and I'm doing it in Rails 4, now upon looking at their documentation here (for Rails4 branch): https://github.com/bborn/communityengine/tree/rails4

I then followed step 1 which is to put this line to my GemFile: gem " https://github.com/bborn/communityengine.git ", :branch => "rails4"

Also step 2 on configuring app name... Now the problem is when I do "bundle install"

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'

How do I enable to install the communityengine gem in my rails 4 app?

To point to github repo for a gem you need to do:

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

I have submitted pull request for the change in the documentation for this branch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM