Gemfile, add 'omniauth' and 'omniauth-facebook'
Gemfile,Gemfile.lock, add 'omniauth' and 'omniauth-facebook'
schema.rb, AddColumnsToUsers, User 增加provider, uid的column
user.rb, devise.rb, routes.rb, omniauth_callbacks_controller.rb, 參考devise上的做法設定的
devise.rb, using settings logic to set facebook key
user.rb, 取消對phone的validates
order.rb, fix problem that validation dosen't work.
user.rb, 調整縮排
orders_controller.rb, 送出訂購時更新電話
orders/_form.html.erb, use client_side_validation
Remove unused carousel.html.rb.
Override registrations_controller and add routes.
omniauth_callbacks_controller.rn, add a alert messages.
edit.html, show two way to update information.
Modify layout.
user.rb, re-indent
orders_controller.rb, remove redundant commented line