I\'m still quite new to Rails so hopefully this isn\'t a silly question.
I have two models: User and Chore. User has_one chore, and Chore belongs to User
<
undefined method `name' for nil:NilClass
This says that you are trying to call some method name() on an an instance of Nil. Within your code's context, that says that chore on this line is nil
<%= user.chore.name %>
Simply put, one of the User instances in @user has no associated Chore. One simple way to accomodate this in your view is by checking if user.chore exists.
<%= user.chore.nil? ? "some default name" : user.chore.name %>