Class: OrgDepartmentPositionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- OrgDepartmentPositionsController
- Defined in:
- app/controllers/org_department_positions_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /org_department_positions.
-
#destroy ⇒ Object
DELETE /org_department_positions/1.
-
#edit ⇒ Object
GET /org_department_positions/1/edit.
-
#index ⇒ Object
GET /org_department_positions.
-
#new ⇒ Object
GET /org_department_positions/new.
-
#show ⇒ Object
GET /org_department_positions/1.
-
#update ⇒ Object
PATCH/PUT /org_department_positions/1.
Instance Method Details
#create ⇒ Object
POST /org_department_positions
23 24 25 26 27 28 29 30 31 |
# File 'app/controllers/org_department_positions_controller.rb', line 23 def create @org_department_position = OrgDepartmentPosition.new(org_department_position_params) if @org_department_position.save redirect_to @org_department_position, notice: 'Org department position was successfully created.' else render :new end end |
#destroy ⇒ Object
DELETE /org_department_positions/1
43 44 45 46 |
# File 'app/controllers/org_department_positions_controller.rb', line 43 def destroy @org_department_position.destroy redirect_to org_department_positions_url, notice: 'Org department position was successfully destroyed.' end |
#edit ⇒ Object
GET /org_department_positions/1/edit
19 20 |
# File 'app/controllers/org_department_positions_controller.rb', line 19 def edit end |
#index ⇒ Object
GET /org_department_positions
5 6 7 |
# File 'app/controllers/org_department_positions_controller.rb', line 5 def index @org_department_positions = OrgDepartmentPosition.all end |
#new ⇒ Object
GET /org_department_positions/new
14 15 16 |
# File 'app/controllers/org_department_positions_controller.rb', line 14 def new @org_department_position = OrgDepartmentPosition.new end |
#show ⇒ Object
GET /org_department_positions/1
10 11 |
# File 'app/controllers/org_department_positions_controller.rb', line 10 def show end |
#update ⇒ Object
PATCH/PUT /org_department_positions/1
34 35 36 37 38 39 40 |
# File 'app/controllers/org_department_positions_controller.rb', line 34 def update if @org_department_position.update(org_department_position_params) redirect_to @org_department_position, notice: 'Org department position was successfully updated.' else render :edit end end |