sample code for spree with rails4 , ruby1.9.3