diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml new file mode 100644 index 000000000..841100873 --- /dev/null +++ b/app/views/users/index.html.haml @@ -0,0 +1,13 @@ +.container + %nav.navbar.navbar-expand-lg.navbar-light.bg-faded + .navbar-brand + %a.nav-link{"data-method" => "get", :href => "/"} e-Navigator + %button.navbar-toggler{"aria-controls" => "navbarNav", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarNav", "data-toggle" => "collapse", :type => "button"} + %span.navbar-toggler-icon + .collapse.navbar-collapse#navbarNav + %ul.navbar-nav + %li.nav-item + = link_to edit_user_path(id: current_user.id) do + %span + プロフィール + %h2 ユーザー一覧 diff --git a/config/routes.rb b/config/routes.rb index 97d181f64..7c4600b71 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Rails.application.routes.draw do devise_for :users # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + resources :users, only: [:index, :edit, :update] root "users#index" end