Rails Bookmarks project error - NoMethodError in Books#index

Hi I am getting the following error:

<% @books.each do |book| %> <div class="book"> <div class="row"> <div class="col-md-1"> <p class="rank-this-week"> <%= book.rank_this_week %> </p> </div> <div class="col-md-9"> <p class="title"> <%= book.title %> </p> <p class="author">by <%= book.author %></p> <p class="publisher">(<%= book.publisher %>)</p> <p class="description"><%= book.description %></p> <%= link_to 'See all Editorial Reviews', book %> </div> <div class="col-md-2"> <p class="weeks-on-list"> <%= book.weeks_on_list %> weeks on list</p> </div> </div> </div> <% end %>

I have also tried:

<%= link_to 'See all Editorial Reviews', book_url(book) %>

which was suggested in a previous thread related to someone else having the same problem in this exercise, changing the code like that produces this error:

How am I supposed to progress with this project? I have followed the video walkthrough scrupulously and these unexpected errors are coming up that the tutorial never addresses? Why does codecademy create these buggy projects and offer no help when you run into these errors.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.