basic layout template

This commit is contained in:
Min Zeya Phyo
2017-04-05 08:24:21 +06:30
parent bcdce092cc
commit 0ddc7bdb44
66 changed files with 7049 additions and 48 deletions

View File

@@ -0,0 +1,12 @@
class Api::CustomersController < ActionController::API
#List all active customers by name
def index
@customers = Customer.order("name asc")
end
#Show customer by ID
def show
@customer = Customer.find_by(params[:id])
end
end