Class: FileSystemsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- FileSystemsController
- Defined in:
- app/controllers/file_systems_controller.rb
Overview
typed: false
Instance Method Summary collapse
-
#create ⇒ Object
POST /file_systems POST /file_systems.json.
-
#destroy ⇒ Object
DELETE /file_systems/1 DELETE /file_systems/1.json.
-
#edit ⇒ Object
GET /file_systems/1/edit.
-
#index ⇒ Object
GET /file_systems GET /file_systems.json.
-
#new ⇒ Object
GET /file_systems/new.
-
#show ⇒ Object
GET /file_systems/1 GET /file_systems/1.json.
-
#update ⇒ Object
PATCH/PUT /file_systems/1 PATCH/PUT /file_systems/1.json.
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
POST /file_systems POST /file_systems.json
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/file_systems_controller.rb', line 27 def create @file_system = FileSystem.new(file_system_params) respond_to do |format| if @file_system.save format.html { redirect_to @file_system, notice: 'File system was successfully created.' } format.json { render :show, status: :created, location: @file_system } else format.html { render :new } format.json { render json: @file_system.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /file_systems/1 DELETE /file_systems/1.json
57 58 59 60 61 62 63 |
# File 'app/controllers/file_systems_controller.rb', line 57 def destroy @file_system.destroy respond_to do |format| format.html { redirect_to file_systems_url, notice: 'File system was successfully destroyed.' } format.json { head :no_content } end end |
#edit ⇒ Object
GET /file_systems/1/edit
22 23 |
# File 'app/controllers/file_systems_controller.rb', line 22 def edit end |
#index ⇒ Object
GET /file_systems GET /file_systems.json
7 8 9 |
# File 'app/controllers/file_systems_controller.rb', line 7 def index @file_systems = FileSystem.all end |
#new ⇒ Object
GET /file_systems/new
17 18 19 |
# File 'app/controllers/file_systems_controller.rb', line 17 def new @file_system = FileSystem.new end |
#show ⇒ Object
GET /file_systems/1 GET /file_systems/1.json
13 14 |
# File 'app/controllers/file_systems_controller.rb', line 13 def show end |
#update ⇒ Object
PATCH/PUT /file_systems/1 PATCH/PUT /file_systems/1.json
43 44 45 46 47 48 49 50 51 52 53 |
# File 'app/controllers/file_systems_controller.rb', line 43 def update respond_to do |format| if @file_system.update(file_system_params) format.html { redirect_to @file_system, notice: 'File system was successfully updated.' } format.json { render :show, status: :ok, location: @file_system } else format.html { render :edit } format.json { render json: @file_system.errors, status: :unprocessable_entity } end end end |