Append Order Detail view finished

This commit is contained in:
Aung Myo
2017-06-01 18:47:08 +06:30
parent f036274f5e
commit acbd8acf04
7 changed files with 166 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
class Api::BookingsController < Api::ApiController
skip_before_action :authenticate
#Show customer by ID
def index
@@ -10,6 +10,15 @@ class Api::BookingsController < Api::ApiController
@booking = Booking.find(params[:id])
end
def update_booking
booking = Booking.find_by(id: params[:booking])
booking.update_all(booking_status: 'Dave')
end
# private
# def Bookings_params
# params.permit(:id, :order_id)