Class: SystemTaskStatusController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SystemTaskStatusController
- Defined in:
- app/controllers/system_task_status_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /system_task_status POST /system_task_status.json.
-
#destroy ⇒ Object
DELETE /system_task_status/1 DELETE /system_task_status/1.json.
-
#edit ⇒ Object
GET /system_task_status/1/edit.
-
#index ⇒ Object
GET /system_task_status GET /system_task_status.json.
-
#new ⇒ Object
GET /system_task_status/new GET /system_task_status/new.json.
-
#show ⇒ Object
GET /system_task_status/1 GET /system_task_status/1.json.
-
#update ⇒ Object
PUT /system_task_status/1 PUT /system_task_status/1.json.
Methods included from SessionsHelper
#preferences_customer_type=, #preferences_customer_type?, #signed_in?, #signed_in_user, #store_location
Instance Method Details
#create ⇒ Object
POST /system_task_status POST /system_task_status.json
43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'app/controllers/system_task_status_controller.rb', line 43 def create @system_task_statu = SystemTaskStatu.new(params[:system_task_statu]) respond_to do |format| if @system_task_statu.save format.html { redirect_to @system_task_statu, notice: 'System task statu was successfully created.' } format.json { render json: @system_task_statu, status: :created, location: @system_task_statu } else format.html { render action: "new" } format.json { render json: @system_task_statu.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /system_task_status/1 DELETE /system_task_status/1.json
75 76 77 78 79 80 81 82 83 |
# File 'app/controllers/system_task_status_controller.rb', line 75 def destroy @system_task_statu = SystemTaskStatu.find(params[:id]) @system_task_statu.destroy respond_to do |format| format.html { redirect_to system_task_status_url } format.json { head :no_content } end end |
#edit ⇒ Object
GET /system_task_status/1/edit
37 38 39 |
# File 'app/controllers/system_task_status_controller.rb', line 37 def edit @system_task_statu = SystemTaskStatu.find(params[:id]) end |
#index ⇒ Object
GET /system_task_status GET /system_task_status.json
5 6 7 8 9 10 11 12 |
# File 'app/controllers/system_task_status_controller.rb', line 5 def index @system_task_status = SystemTaskStatu.all respond_to do |format| format.html # index.html.erb format.json { render json: @system_task_status } end end |
#new ⇒ Object
GET /system_task_status/new GET /system_task_status/new.json
27 28 29 30 31 32 33 34 |
# File 'app/controllers/system_task_status_controller.rb', line 27 def new @system_task_statu = SystemTaskStatu.new respond_to do |format| format.html # new.html.erb format.json { render json: @system_task_statu } end end |
#show ⇒ Object
GET /system_task_status/1 GET /system_task_status/1.json
16 17 18 19 20 21 22 23 |
# File 'app/controllers/system_task_status_controller.rb', line 16 def show @system_task_statu = SystemTaskStatu.find(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @system_task_statu } end end |
#update ⇒ Object
PUT /system_task_status/1 PUT /system_task_status/1.json
59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'app/controllers/system_task_status_controller.rb', line 59 def update @system_task_statu = SystemTaskStatu.find(params[:id]) respond_to do |format| if @system_task_statu.update_attributes(params[:system_task_statu]) format.html { redirect_to @system_task_statu, notice: 'System task statu was successfully updated.' } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @system_task_statu.errors, status: :unprocessable_entity } end end end |