Humpyard is a CMS in a gem for Rails 3.
-
Add Humpyard to your Rails application’s Gemfile. It does require edge rails at the moment.
gem 'rails', :git => 'git://github.com/rails/rails.git' gem "builder" gem 'haml', :git => 'git://github.com/nex3/haml.git' gem 'compass', :git => 'git://github.com/chriseppstein/compass.git' gem 'acts_as_tree', '>= 0.1.1' gem 'cancan', '>= 1.1.1' gem 'globalize2', :git => 'git://github.com/starpeak/globalize2.git' gem 'humpyard_form', :git => 'git://github.com/humpyard/humpyard_form.git' gem 'humpyard', :git => 'git://github.com/humpyard/humpyard.git'
-
Change into your Rails application’s directory
-
Generate Humpyard skeleton
rails generate humpyard:skeleton
A full documentation of options for creating a humpyard skeleton can be found at the Humpyard::Generators::ElementGenerator section of this documentation.
-
Use an Auth Framework
rails generate humpyard:auth
At the moment there is only a fake user framework for toggling if the admin-user is logged in or not. There are going to be generators for both, Authlogic and Devise, as soon as we get those to work with edge Rails.
As the abilities in Humpyard are defined by CanCan, it should be possible to use any auth framework to authentice your users.
-
Migrate the Humpyard database tables
rake humpyard:db:migrate
-
API Documentation can be created by running
rake rdoc
from the humpyard project directory.
-
There is an auto-generated, up-to-the-hour online_documentation of the API Documentation.
-
Fork the project.
-
Make your feature addition or bug fix.
-
Add tests for it. No discussion. No tests, no game. We use rspec and cucumber with associated addons.
-
Commit, do not mess with rakefile, version, or history. If you want to have your own version, thats fine. But bump your version in a seperate commit that can be ignored when pulling.
-
Send me a pull request. Bonus points for topic branches.
Copyright © 2010 Sven G. Brönstrup. See LICENSE for details.