order reservation

This commit is contained in:
phyusin
2018-04-12 11:01:13 +06:30
parent c1a6ff7230
commit 49ebc6c0dc
6 changed files with 122 additions and 73 deletions

View File

@@ -354,6 +354,11 @@ class Customer < ApplicationRecord
#new customer for doemal
def self.addCustomer(params)
if params[:gender] == "female"
gender = "Female"
else
gender = "Male"
end
customer = Customer.new
customer.name = params[:name]
customer.email = params[:email]