Clean Up Links On The Topics List
Goals
Steps
Step 1: Remove the 'Show this topic' links
<p> <%= link_to "Show this topic", topic %> </p>Step 2: Turn it into a real list
<ul id="topics"> <% @topics.each do |topic| %> <li id="<%= dom_id topic %>"> <%= link_to topic.title, topic %> <%= pluralize(topic.votes.count, "vote") %> <%= button_to '+1', upvote_topic_path(topic), method: :post %> </li> <% end %> </ul>Step 3: Add some CSS to get the button in line
ul#topics form { display: inline; }Step 4: Confirm your changes
Explanation
Next Step:
Go on to Credits And Next Steps