From 206b554a0f2d5bcd01f79289bf33633581d3fa43 Mon Sep 17 00:00:00 2001 From: Ken Ohata Date: Sat, 22 Nov 2014 19:11:17 +0900 Subject: [PATCH] add link_to new_session_path --- app/assets/stylesheets/registrations.css.sass | 3 +++ app/views/registrations/new.html.haml | 1 + 2 files changed, 4 insertions(+) diff --git a/app/assets/stylesheets/registrations.css.sass b/app/assets/stylesheets/registrations.css.sass index a1ef422..31019a4 100644 --- a/app/assets/stylesheets/registrations.css.sass +++ b/app/assets/stylesheets/registrations.css.sass @@ -45,3 +45,6 @@ margin-top: 10px margin-bottom: 10px font-size: 16px + .login + color: #fff + text-decoration: underline diff --git a/app/views/registrations/new.html.haml b/app/views/registrations/new.html.haml index bb5d888..b674fcc 100644 --- a/app/views/registrations/new.html.haml +++ b/app/views/registrations/new.html.haml @@ -24,4 +24,5 @@ = f.label :password_confirmation, "確認用パスワード: 6文字以上", class: "control-label" = f.password_field :password_confirmation, class: "form-control" = f.submit "登録する", class: "btn btn-primary" + = link_to "ログインする", new_sessions_path, class: "login pull-right" .clear