Note: Project’s README should be identical to README.textile on Github — I try hard to keep both versions in synchronized state, but check out the Github-version too.
CBA is forked from Rails3-Mongoid-Devise by fortuity, and extended by Andi Altendorfer with
- OmniAuth
- Paperclip
- CanCan
- jQuery
CBA’s own implementations
- Models/MVC
- User
- Blog
- Posting
- Page
- Features:
- Comments and Attachments for all models
- i18n enabled (en/de)
- installation.rb (See: Posting)
- Configuration in application.yml
There is a rake-task to start the background jobs
rake delayed_jobs:work
Unfortunatley DelayedJobs by ‘tobi’ doesn’t work with MongoId.
So I did this my own way. To define new background-workers follow this steps:
- Define a worker in
app/workers
(See new_sign_up_notifier.rb for example) - Enqueue new Jobs like shown in
app/model/user.rb
, methodasync_notify_on_creation
(Source)
Since nearly any website needs some kind of ‘semi-static pages’ and we need some kind of object to test the application, there is a resource Page with the following features
- Consists of a title and a body
- The body is rendered with RedCloth
- The MongoId of
/page/MONGO_ID
in the browser-address will be replaced by/p/title_of_the_page
with JS.
See → Freedom