user/index.html.rb
<% @users.each |user| do %>
<%= link_to user_path(user) do %>
<%= @user.name %>
<% end %>
<% end %>
上記のように、link_to do〜end で囲えば良い。
Go to list of users who liked
More than 1 year has passed since last update.
<% @users.each |user| do %>
<%= link_to user_path(user) do %>
<%= @user.name %>
<% end %>
<% end %>
上記のように、link_to do〜end で囲えば良い。
Register as a new user and use Qiita more conveniently
Go to list of users who liked