Rails 3 branch

137 views
Skip to first unread message

Jacqueline Lim

unread,
Apr 8, 2012, 10:59:32 AM4/8/12
to CommunityEngine
I have downloaded the rails 3 branch for a few times. but i noticed
that some of the files are missing, including Gemfile.

Can I get any help please? This is urgent.

mike muldoon

unread,
Apr 8, 2012, 5:15:12 PM4/8/12
to communi...@googlegroups.com
This thread from Sept includes Bruno's Gemfile, although it may be dated by now:
https://groups.google.com/forum/#!msg/communityengine/1BaXXdueTOA/Xe46dYFF_H4J

I haven't pulled new code since then, so I may be out of date, too,
but here's my Gemfile:
http://pastie.org/3752048

hth!
Mike

> --
> You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
> To post to this group, send email to communi...@googlegroups.com.
> To unsubscribe from this group, send email to communityengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
>

mike muldoon

unread,
Apr 8, 2012, 5:20:37 PM4/8/12
to communi...@googlegroups.com

Jacqueline Lim

unread,
Apr 8, 2012, 8:20:31 PM4/8/12
to CommunityEngine
Thank you. Good day.


On Apr 9, 5:15 am, mike muldoon <mike.muld...@gmail.com> wrote:
> This thread from Sept includes Bruno's Gemfile, although it may be dated by now:https://groups.google.com/forum/#!msg/communityengine/1BaXXdueTOA/Xe4...

Jacqueline Lim

unread,
Apr 9, 2012, 2:12:04 AM4/9/12
to CommunityEngine
Hi. I have another qs.

I'm stuck in the 1st step to install CE. The steps are from this link:
https://github.com/bborn/communityengine/tree/rails3

The Gemfile is missing when I downloaded it. So I made one by myself,
and paste the Gemfile you gave me inside. Then I run 'bundle install --
binstubs' in command prompt with ruby and rails. 'Could not locate
gemfile' appeared.

Can you guide me in this 1st step of installation?

On Apr 9, 5:15 am, mike muldoon <mike.muld...@gmail.com> wrote:
> This thread from Sept includes Bruno's Gemfile, although it may be dated by now:https://groups.google.com/forum/#!msg/communityengine/1BaXXdueTOA/Xe4...

Andrew Havens

unread,
Apr 10, 2012, 8:21:12 PM4/10/12
to communi...@googlegroups.com
I've never installed CE before, but i think i know your problem. First you need a Rails application. CE attaches to a rails application.

Install rails 3.2 and generate an app: rails new mysocialapp

Now you will have a Gemfile because a Rails 3 app always has a Gemfile.

Now you need to add CE to your Gemfile. Something like this (sorry, can't test I'm writing this from my phone):

gem 'community_engine', :git => 'https://github.com/bborn/communityengine', :branch => 'rails3'

This is because (as far as I know) the Rails 3 branch has not been released on RubyGems.org so you need to manually point it to this branch. I also don't think the Readme has been updated to reflect this type of install.

I hope that helps. Again, I never got the Rails 3 install to work when I tried, so I've just been trolling this mailing list until it gets released (which may be never).

Andrew

Bruno Bornsztein

unread,
Apr 10, 2012, 9:56:18 PM4/10/12
to communi...@googlegroups.com
Hi guys,
Just want to chime in here: 

Jaqueline; it seems like you're having trouble with some of the basics of developing a Rails app, so you may want to understand that part of it first before you move on to integrating CE.

First off, CE is not compatible with Rails 3.2.3 yet. The rails3 branch is only just (like, last week) compatible with 3.2.

If you're able to create a Rails 3.2 app (like Andrew said, install Rails 3.2 and `rails new myappname`) you should be able to follow the instructions in the README to get CE running. Sounds to me like you're trying to download CE manually, which isn't the right approach. You should be adding it to your app's Gemfile instead.

This is because (as far as I know) the Rails 3 branch has not been released on RubyGems.org so you need to manually point it to this branch. I also don't think the Readme has been updated to reflect this type of install.

That's actually not true: CE 2.0.0.beta3 has been released on RubyGems (it's compatible with Rails 3.1.2). If you want the absolute latest (beta4, which is compatible with Rails 3.2.0) then you'll need to source the gem from Github as you mention.

Remember, there's a (somewhat outdated) sample app at https://github.com/bborn/ce-heroku/tree/rails3 that shows a basic example of a Rails 3 app using CE. It should at least get you going in the right direction.

Thanks,
Bruno

Tibo Mogul

unread,
Apr 12, 2012, 3:29:07 AM4/12/12
to communi...@googlegroups.com, Bruno Bornsztein
Hi Bruno,

I've played with CE before, it is an excellent piece of software!

Now I am trying the Rails 3 version, I'm having a problem with a
dependency:

Bundler could not find compatible versions for gem "multi_json":
In Gemfile:
community_engine (>= 0) ruby depends on
multi_json (~> 1.0.0) ruby

rails (= 3.2.0) ruby depends on
multi_json (1.2.0)

It seems the community_engine dependency is too restrictive for rails
3.2? How were you able to get around this?

Thanks in advance,
Tibo

Bruno Bornsztein

unread,
Apr 12, 2012, 7:57:36 AM4/12/12
to Tibo Mogul, communi...@googlegroups.com
Hi Tibo,
CE doesn't declare a multi_json dependency (https://github.com/bborn/communityengine/blob/rails3/community_engine.gemspec), so I'm actually not sure where that's coming from (maybe one of CE's required gems needs it?).

In any case, try adding "gem 'multi_json', '1.0.4'" to your app's Gemfile.

Thanks,
Bruno

To post to this group, send email to communityengine@googlegroups.com.

To unsubscribe from this group, send email to

Tibo Mogul

unread,
Apr 12, 2012, 9:46:16 AM4/12/12
to Bruno Bornsztein, communi...@googlegroups.com
Hi Bruno,

Thanks, that at least got the install working. Didn't have the time to track down which dependency, but since rails is ok with 1.0.4 installed I'll leave it be for now.

Thanks again!

Sent from my iPhone
Message has been deleted

Jacqueline Lim

unread,
Apr 17, 2012, 2:16:45 AM4/17/12
to CommunityEngine
Thanks for your help. I'll try. Have a nice day. :)

Jacqueline Lim

unread,
Apr 17, 2012, 2:52:57 AM4/17/12
to CommunityEngine
Thanks, Bruno. I'm glad that you replied.

1. My current rails version is 3.2.3. Just now I type at cmd prompt:
gem install rails --version 3.2.
'Successfully installed rails 3.2.0. 8 gems installed' , etc appeared.
Then i checked my rails version again, it's still 3.2.3. What should I
do now?

2. I just continue to try. Next, I type rails new myappname at cmd
prompt. after that I go back to the 1st step at
https://github.com/bborn/communityengine/tree/rails3, which is copy
gem 'community_engine' into my gemfile. Do i copy and paste it at the
last line? Does that matter?

3. Then, i type bundle install --binstubs. 'Could not locate gemfile'
appeared. What's the problem here?

Thanks.

Jacqueline

On Apr 11, 9:56 am, Bruno Bornsztein <bruno.bornszt...@gmail.com>
wrote:
> Remember, there's a (somewhat outdated) sample app athttps://github.com/bborn/ce-heroku/tree/rails3that shows a basic example

Jacqueline Lim

unread,
Apr 17, 2012, 5:23:39 AM4/17/12
to CommunityEngine
Hi again, Bruno.

I think i have solve the 1st step in the rails3 readme. The 1st line
of 2nd step is ok too.

Now i run rake community_engine:install:migrations. rake aborted!
don't know how to build task 'community_engine:install:migrations'.

Can I get help plz?

Jacqueline

On Apr 11, 9:56 am, Bruno Bornsztein <bruno.bornszt...@gmail.com>
wrote:
> Remember, there's a (somewhat outdated) sample app athttps://github.com/bborn/ce-heroku/tree/rails3that shows a basic example
Reply all
Reply to author
Forward
Message has been deleted
0 new messages