Class: OrdersManagementModule::OrderAdjustmentLineItemsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- OrdersManagementModule::OrderAdjustmentLineItemsController
- Defined in:
- app/controllers/orders_management_module/order_adjustment_line_items_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /order_adjustment_line_items.
-
#destroy ⇒ Object
DELETE /order_adjustment_line_items/1.
-
#edit ⇒ Object
GET /order_adjustment_line_items/1/edit.
-
#index ⇒ Object
GET /order_adjustment_line_items.
-
#new ⇒ Object
GET /order_adjustment_line_items/new.
-
#show ⇒ Object
GET /order_adjustment_line_items/1.
-
#update ⇒ Object
PATCH/PUT /order_adjustment_line_items/1.
Instance Method Details
#create ⇒ Object
POST /order_adjustment_line_items
24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 24 def create @order_adjustment_line_item = OrderAdjustmentLineItem.new(order_adjustment_line_item_params) if @order_adjustment_line_item.save redirect_to @order_adjustment_line_item, notice: "Order adjustment line item was successfully created." else render :new, status: :unprocessable_entity end end |
#destroy ⇒ Object
DELETE /order_adjustment_line_items/1
44 45 46 47 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 44 def destroy @order_adjustment_line_item.destroy! redirect_to order_adjustment_line_items_url, notice: "Order adjustment line item was successfully destroyed.", status: :see_other end |
#edit ⇒ Object
GET /order_adjustment_line_items/1/edit
20 21 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 20 def edit end |
#index ⇒ Object
GET /order_adjustment_line_items
6 7 8 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 6 def index @order_adjustment_line_items = OrderAdjustmentLineItem.all end |
#new ⇒ Object
GET /order_adjustment_line_items/new
15 16 17 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 15 def new @order_adjustment_line_item = OrderAdjustmentLineItem.new end |
#show ⇒ Object
GET /order_adjustment_line_items/1
11 12 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 11 def show end |
#update ⇒ Object
PATCH/PUT /order_adjustment_line_items/1
35 36 37 38 39 40 41 |
# File 'app/controllers/orders_management_module/order_adjustment_line_items_controller.rb', line 35 def update if @order_adjustment_line_item.update(order_adjustment_line_item_params) redirect_to @order_adjustment_line_item, notice: "Order adjustment line item was successfully updated.", status: :see_other else render :edit, status: :unprocessable_entity end end |