Questions regarding the use of Community Engine as a base to build a new application

67 views
Skip to first unread message

Rolando

unread,
Apr 13, 2012, 7:22:57 PM4/13/12
to CommunityEngine
Hello all,

I and a group of colleagues are trying to use Community Engine in a
school assignment (using Rails 3) and have a few questions:

1. Imagine we already have a Rails application. It says in Community
Engine's home page that it can be dropped into an existing
application. Could someone give me a quick overview of how that
functionality works?

2. In our assignment we are trying to run the code in a Heroku
app. For that, we started with this code:
https://github.com/bborn/ce-heroku/tree/rails3 . That code works fine
as it is, however when we try to add new functionality (for example,
changing the layout of the front page or add new models) to it, we
found that Community Engine fights back and we cannot add new features
to it since a variety of errors start popping up. Is it possible to
use the code in that github repository as a base and add some new
functionality to it?



Best regards,
Rolando Pereira

Bruno Bornsztein

unread,
Apr 16, 2012, 3:56:54 PM4/16/12
to communi...@googlegroups.com
Hi Rolando,
 
1. Imagine we already have a Rails application. It says in Community
Engine's home page that it can be dropped into an existing
application. Could someone give me a quick overview of how that
functionality works?

Assuming your app is running on a compatible version of Rails (it's Rails 3.2.0 for the rails3 branch), you should be able to just add the gem and follow the installation instructions. Obviously if you have conflicting models or db tables, you'll have to sort out the issues (i.e. if you already have a User model and a users table).

Sometimes a better way is to start a blank Rails app, add CE, and then bring in your existing functionality.
 

2. In our assignment we are trying to run the code in a Heroku
app. For that, we started with this code:
https://github.com/bborn/ce-heroku/tree/rails3 . That code works fine
as it is, however when we try to add new functionality (for example,
changing the layout of the front page or add new models) to it, we
found that Community Engine fights back and we cannot add new features
to it since a variety of errors start popping up. Is it possible to
use the code in that github repository as a base and add some new
functionality to it?

It should be, but that repo is pretty out of date (I haven't upgraded it in a while), so I'd be a little hesitant. I'll to get it updated in the next few weeks (unless someone else wants to do me a favor and do it instead!)

Thanks,
Bruno

 



Best regards,
Rolando Pereira

--
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.


Reply all
Reply to author
Forward
0 new messages