Skip to content

Commit

Permalink
ルーティングの変更とビューの仮置き
Browse files Browse the repository at this point in the history
  • Loading branch information
yumayo14 committed Jan 23, 2018
1 parent d56a6cf commit 661ad0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/views/users/index.html.haml
Original file line number Diff line number Diff line change
@@ -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 ユーザー一覧
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Rails.application.routes.draw do
devise_for :users
# For details on the DSL available within this file, see http:https://guides.rubyonrails.org/routing.html
resources :users, only: [:index, :edit, :update]
root "users#index"
end

0 comments on commit 661ad0c

Please sign in to comment.