Skip to content

freego/spree_slug_history

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SpreeSlugHistory

NOTE: This is built-in in recent Spree versions.

Avoids 404's when slugs change, thanks to friendly_id history module.

Installation

Add spree_slug_history to your Gemfile:

gem 'spree_slug_history', github: 'freego/spree_slug_history',
                          branch: 'X-X-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_slug_history:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

Copyright (c) 2014 Alessandro Lepore, released under the New BSD License

About

Avoids 404's when slugs change in Spree, thanks to friendly_id history module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published