Ruby初心者です。
現在、インスタグラムのようなサービスの作成を行っており、
自分のフォロワー一覧の画像から、画像をクリックすることで、そのフォロワーページに飛ぶ実装をしています。
エラー内容
ActionView::MissingTemplate Missing partial users/_user with {:locale=>[:ja], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
users/show_follow.html.erb
<% if @users.any? %> <ul class="users follow"> <%= render @users %> </ul> <%= will_paginate %> <% end %>
show_follow.html.erbのreder @user部分がエラーになっており、user詳細ページに繋げることが出来ません。
render以下をroot_pathや他の名前つきパスに変更してみてもエラーが出てしまいます。
undefined method `empty?' for nil:NilClass
(root_pathに設定した場合)
どなたかご教授して頂けると幸いです。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/26 05:40