'nil' is not an ActiveModel-compatible object that returns a valid partial path
问题 First question, please be gentle :) I am having trouble creating an index view for a client model that belongs_to the user model with a has_many association. The error message: 'nil' is not an ActiveModel-compatible object that returns a valid partial path. Specifically the error refers to the partial on line #11: /views/clients/index.html <% provide(:title, current_user.name) %> <div class="row"> <aside class="span4"> <section> <h1>Your clients</h1> </section> </aside> <div class="span8"> <%