add routes path /users
This commit is contained in:
parent
77c7892f42
commit
01be1fff76
2 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
class UsersController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
def current_user_dossier dossier_id=nil
|
||||
dossier_id ||= params[:dossier_id] || params[:id]
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
get 'demo' => 'demo#index'
|
||||
get 'users' => 'users#index'
|
||||
|
||||
namespace :users do
|
||||
resources :dossiers do
|
||||
|
|
Loading…
Reference in a new issue