My first tribute page - test failing me

<%= @topic_view.topic.title %>
<%= @topic_view.topic.average_rating %> <%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %>

I just created my first ever website after a few hours of coding and struggling and thought it turned out great despite having a breakdown halfway through. I just finished up and believe I included everything mentioned in the test, but I ran it to receive a 1/10 for some reason. Could someone else check this for me to see why it would display this result? Thank you!


You haven’t incorporated the user stories in your code. For example, the first user story is:

My tribute page should have an element with a corresponding id="main" , which contains all other elements.

You haven’t placed an id tag with the name main that has all the elements.

There is nothing inherently wrong with your tribute page. It looks really solid. The reason why you haven’t passed the test is simply because you haven’t incorporated the user stories with the required name for the tags. The test will scan for the names of the tag and check whether you have passed the test.

1 Like

Thank you! I went back through and put the id tags in and finally got the 10/10!

1 Like