Adding SpreeFancy to Your Store

Adding SpreeFancy to Your Store

As I went over in my last blog article, a simple addition you can make to your spree store is adding the SpreeFancy gem, adding an attractive theme to the base store. SpreeFancy is easy to install. Just add this to your Gemfile:

gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '2-1-stable'

And run bundle after that. Note: I am running a Spree 2.1 store, so I am using the 2-1-stable branch. If you are using another version of Spree, be sure to have the Gemfile pointing to the correct branch of SpreeFancy.

Read more

Customizing a Default Spree Store, Time Estimates

Customizing a Default Spree Store, Time Estimates

Spree is a great Ruby on Rails e-commerce platform, allowing developers and clients to quickly set up an online store-front. A completely functional store can be built in a relatively short amount of time. Additional customization can commence from there.

Spree comes with a front end theme already installed. This allows a developer to quickly provide a working store with a usable front end. A default Spree store looks like this:

Read more

Using Bootstrap Panels to Organize Data in a Rails App

Using Bootstrap Panels to Organize Data in a Rails App

I’m creating a basic pantry application which will be able to catalog current items in the user’s pantry.  So, one of the pages needed will display different food items and the current quantities in the user’s pantry.  A way to organize this data is to use a Bootstrap Panel to display the current totals and when the selected panel is clicked, individual data values will be displayed.

The data structure consists of Store, Producer, and Unit models, which all just consist of a name.  Next, we have the Food model which has a name, upc, servings, serving_size, and references to a Producer and Unit.  Finally, we have the Stock model which has a price, quantity, discount, bought, and references to Food, Store, and User (for the User I’m just using the basic Devise User model).

Read more