A simple shopping app implemented by rails 3