Class: EziiTeamworksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- EziiTeamworksController
- Defined in:
- app/controllers/ezii_teamworks_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /ezii_teamworks POST /ezii_teamworks.json.
-
#destroy ⇒ Object
DELETE /ezii_teamworks/1 DELETE /ezii_teamworks/1.json.
-
#edit ⇒ Object
GET /ezii_teamworks/1/edit.
-
#index ⇒ Object
GET /ezii_teamworks GET /ezii_teamworks.json.
-
#new ⇒ Object
GET /ezii_teamworks/new.
-
#show ⇒ Object
GET /ezii_teamworks/1 GET /ezii_teamworks/1.json.
-
#update ⇒ Object
PATCH/PUT /ezii_teamworks/1 PATCH/PUT /ezii_teamworks/1.json.
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
POST /ezii_teamworks POST /ezii_teamworks.json
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 26 def create @ezii_teamwork = EziiTeamwork.new(ezii_teamwork_params) respond_to do |format| if @ezii_teamwork.save format.html { redirect_to @ezii_teamwork, notice: 'Ezii teamwork was successfully created.' } format.json { render :show, status: :created, location: @ezii_teamwork } else format.html { render :new } format.json { render json: @ezii_teamwork.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /ezii_teamworks/1 DELETE /ezii_teamworks/1.json
56 57 58 59 60 61 62 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 56 def destroy @ezii_teamwork.destroy respond_to do |format| format.html { redirect_to ezii_teamworks_url, notice: 'Ezii teamwork was successfully destroyed.' } format.json { head :no_content } end end |
#edit ⇒ Object
GET /ezii_teamworks/1/edit
21 22 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 21 def edit end |
#index ⇒ Object
GET /ezii_teamworks GET /ezii_teamworks.json
6 7 8 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 6 def index @ezii_teamworks = EziiTeamwork.all end |
#new ⇒ Object
GET /ezii_teamworks/new
16 17 18 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 16 def new @ezii_teamwork = EziiTeamwork.new end |
#show ⇒ Object
GET /ezii_teamworks/1 GET /ezii_teamworks/1.json
12 13 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 12 def show end |
#update ⇒ Object
PATCH/PUT /ezii_teamworks/1 PATCH/PUT /ezii_teamworks/1.json
42 43 44 45 46 47 48 49 50 51 52 |
# File 'app/controllers/ezii_teamworks_controller.rb', line 42 def update respond_to do |format| if @ezii_teamwork.update(ezii_teamwork_params) format.html { redirect_to @ezii_teamwork, notice: 'Ezii teamwork was successfully updated.' } format.json { render :show, status: :ok, location: @ezii_teamwork } else format.html { render :edit } format.json { render json: @ezii_teamwork.errors, status: :unprocessable_entity } end end end |