Class: Docushin::RoutesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/docushin/routes_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



13
14
15
# File 'app/controllers/docushin/routes_controller.rb', line 13

def edit
  @route = @route_set.find(params[:id])
end

#indexObject



6
7
# File 'app/controllers/docushin/routes_controller.rb', line 6

def index
end

#showObject



9
10
11
# File 'app/controllers/docushin/routes_controller.rb', line 9

def show
  @route = @route_set.find(params[:id])
end

#updateObject



17
18
19
20
21
# File 'app/controllers/docushin/routes_controller.rb', line 17

def update
  @route = @route_set.find(params[:id])
  @route.update_attributes(params[:route])
  redirect_to routes_path
end