This is a slide to introduce something about Spree, which is an open source e-commerce framework for Ruby on Rails. Through it, I'll show something Spree allows we to do with it, such as, customize the views, models or controllers.
this: 1. Using Deface Deface is a standalone Rails 3 library that enables you to customize Erb templates without needing to directly edit the underlying view file. Deface allows you to use standard CSS3 style selectors to target any element (including Ruby blocks), and perform an action against all the matching elements. Now the official repo is located at spree/deface. 2. Template replacement Sometimes the customization required to a view are so substantial that using a Deface override seems impractical. Spree also supports the duplication of views within an application or extension that will completely replace the file of the same name in Spree.
before the #registration div on the page you would define an override as follows: Note: the :name key is important! 1. Locate the override; 2. Disable default overrides from Spree extensions;
gem: globalize3 (https://github.com/svenfuchs/globalize3) ! Support Rails 4.0(finished on SEPTEMBER 16, 2013) ! More friendly users and developers documents