add routes path /users

This commit is contained in:
Xavier J 2016-02-01 18:18:55 +01:00
parent 77c7892f42
commit 01be1fff76
2 changed files with 5 additions and 0 deletions

View file

@ -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]

View file

@ -25,6 +25,7 @@ Rails.application.routes.draw do
end
get 'demo' => 'demo#index'
get 'users' => 'users#index'
namespace :users do
resources :dossiers do