diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 10b33f5..3b452c3 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -1,7 +1,7 @@ class VolumeController < ApplicationController helper_method :file_directory - def info + def index @conf_list = get_conf project_path = String.new @conf_list.each do |t| diff --git a/app/views/partials/_sidenav.html.erb b/app/views/partials/_sidenav.html.erb index 99f7541..500c01f 100644 --- a/app/views/partials/_sidenav.html.erb +++ b/app/views/partials/_sidenav.html.erb @@ -15,13 +15,13 @@
@@ -114,6 +111,8 @@ + + + + + + \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 014995f..3472b99 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do get 'peer/index' - get 'volume/info' + get 'volume/index' get 'home/index' @@ -10,14 +10,17 @@ Rails.application.routes.draw do # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" - root 'plainpage#index' + root 'plainpage#index' - get 'index' => 'plainpage#index' - - get 'volume/info' => 'volume#info' - get 'peer/index' => 'peer#index' - post 'file_upload' => 'volume#file_upload' - post 'volume/changeDir' => 'volume#checkDir' + get 'index' => 'plainpage#index' + + get 'volume/index' => 'volume#index' + + get 'peer/index' => 'peer#index' + + post 'file_upload' => 'volume#file_upload' + + post 'volume/changeDir' => 'volume#checkDir' # Example of regular route: # get 'products/:id' => 'catalog#view'