Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 2.03 KB

README.textile

File metadata and controls

52 lines (34 loc) · 2.03 KB

CBA – Community Base Application

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

Installation

Delayed Jobs

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:

  1. Define a worker in app/workers (See new_sign_up_notifier.rb for example)
  2. Enqueue new Jobs like shown in app/model/user.rb, method async_notify_on_creation (Source)

Resource ‘Page’

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

  1. Consists of a title and a body
  2. The body is rendered with RedCloth
  3. The MongoId of /page/MONGO_ID in the browser-address will be replaced by /p/title_of_the_page with JS.

License

See → Freedom