Blogit - Add a blog to your Rails application in seconds
Blogit lets you add a blog to your Ruby on Rails application in just a few seconds.
We developed blogit because we found ourselves adding the same features to client apps over and over again. Now blogit handles all of that for us.
Add these to your Gemfile
gem "blogit" # Blogit depends on ActsAsTaggableOn gem "acts-as-taggable-on"
bundle install to install the gem.
# add an initializer to config/initializers with all of the configuration options $ rails g blogit:install # This will add the necessary migrations to your app's db/migrate directory rake blogit:install:migrations # You don't need to run this again if you've already done so rake acts_as_taggable_on:install:migrations # This will run any pending migrations rake db:migrate
then add the following to your routes.rb file:
# config/routes.rb mount Blogit::Engine => "/blog"
Finally, declare which of your models acts as blogger in your app (probably User or Admin) by calling the
blogs method in your model.
class User < ActiveRecord::Base blogs end
Go to http://localhost:3000/blog and see your marvelous new blog.
We've added some rake tasks to make development easier.
Seed blog posts
This rake task will add a bunch of blog posts to your DB:
Make sure you have at least one model defined as a blogger (probably User or Admin)
Too lazy to write your own CSS? Load in one of blogit's themes.
/* *= require blogit/themes/[theme-name] */
The list of themes currently available:
rails g blogit:install will add an initializer file named
config/initializers/blogit.rb. Here you can set various configuration options.
Pleasefor a full list of the options available.
There's a ton of stuff you can do with Blogit. Please read the "How To" guide for more information.
Blogit provides you with the following features
- An XML Sitemap located at
- An RSS feed located at
- Internationalization (see the locales files for configurable options)
- Share links (Google+, Twitter & Facebook)
- Disquss Comments
- Code Syntax Highlighting
- CSS Themes
Features we've still to add
Blogit is still undergoing development. We're always looking for ways to make it better.
Read the TODOs page for a list of the features we'd like to support.
Upgrading from a previous version?
If you're upgrading from a beta version of blogit, please read this upgrade guide
If you discover a problem with Blogit, please let us know about it.
Remember to search the issues list first in case your issue has already been raised by another Githuber
Want to help make Blogit better?. Please read the contribution guidelines for more information on how you can contribute.
Blogit is realeased under the MIT License.
See LEGAL for full details.
Blogit was developed by Katana Code with generous contributions from:
About Katana Code
Katana Code are web developers based in Edinburgh, Scotland.
Copyright © 2011 - 2015 Katana Code Ltd.