LoginSignup
0
0

More than 3 years have passed since last update.

ログイン機能をつける

Posted at

gem 'devise'
を使用してログイン機能を付ける。

<% if user_signed_in? %>
<%= link_to "編集", edit_user_password_path%>
<%= link_to "ログアウト", destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to "ログイン", new_user_session_path %>
<% end %>

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0