NOTE: This is built-in in recent Spree versions.
Avoids 404's when slugs change, thanks to
friendly_id history module.
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
First bundle your dependencies, then run
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
bundle bundle exec rake
Copyright (c) 2014 Alessandro Lepore, released under the New BSD License