Blogging with spree 3-0-stable

A blogging extension for spree 3.0 stable

Posted by @krazedkrish on November 3, 2015

Spree Commerce

(also known as Spree) is an open source e-commerce solution based on Ruby on Rails. It was created by Sean Schofield in 2007 and has since had over 740 contributors

If you are using Spree, you must be wishing to add a blog for you site. Since spree 3.0 you must be struggling to do it.

Well, I did. And I am writing this blog, so that you dont …(tl;dw)

Here is how you do it:

Installation:

gem 'spree_blogging_spree', github: 'krazedkrish/spree-blogging-spree', branch: '3-0-stable'
  • Bundle your dependencies and run the installation generator:
$ bundle install
$ rake railties:install:migrations
$ rake db:migrate

Alternatives:

Several other contributors have forked and added spree 3-0 stable compatibility. Here are some alternative fork you might wanna check:

More about spree-blogging-spree

The blog is found under /blog on the website font end. Blog entries have fields for title, body, summary, date published, and author. Each blog entry can also have categories and tags associated with it.

The Spree Editor extension can be used to provide a rich text experience when editing the body of a blog entry.

The author is an instance of Spree.user_class, typically a Spree::User. The author can be selected from users with the blogger role when editing a blog entry in the admin. Some additional fields, including nickname, website URL, and Google Plus URL are added to the user model. Google Authorship information is added to the page head when the Google Plus URL is set.

There is no commenting system yet. One option for adding comments is to override the spree/blog_entries/comments partial and include and external commenting system, such as Disqus.

Admin users can preview blog entries before they're made publicly visible.

Lastly hope you guys contribute and help the blogging site become better.

You might also..

If you like my blog and this gem you would really wanna do one of these: