0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A Rails engine running pages and blog posts in a CMS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

TKH Content

This Rails engine puts the C in CMS. It provides the pages and the blog section.

Primarily developed for Ten Thousand Hours but we are happy to share if anybody finds it useful. It's meant primarily to be used with the tkh_cms gem suite but over time we want it to be used individually as well. The latter implementation will be accelerated if some issues and pull requests come in, denoting some interest out there.

It's still embryonic but many improvements to come. The blog is now coming bit by bit.

Pre-requisites

The following things are needed:

  • Ruby 1.9.2 or later
  • A shared/menus view partial or the tkh_menus gem

Installation

Add this line to your application's Gemfile:

gem 'tkh_content', '~> 1.0.beta1'

Then execute:

$ bundle

Import migrations and needed files

	$ rake tkh_content:install

Run the migrations

	$ rake db:migrate

And then of course restart your server!

	$ rails s

Upgrading

Update the gem:

$ bundle update tkh_content

Update files, migrations, etc. This is not always needed.

	$ rake tkh_content:update

Run migrations if there are new ones

	$ rake db:migrate

Start your server!

	$ rails s

Usage

The main section is located at:

/pages

... and it should work out of the box

Contributing

Pull requests for new features and bug fixes are welcome.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Create your failing tests based on the Test Unit framework.
  4. Create your code which makes the tests pass.
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request