Skip to content

Commit 573b9f3

Browse files
committed
Fix upvote_topic_path ref that was incorrectly stated as topic_upvote_path
1 parent 7439c90 commit 573b9f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sites/en/intro-to-rails/allow_people_to_vote.step

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ steps {
6868
message <<-MARKDOWN
6969
* `pluralize(topic.votes.count, "vote")` displays the number of votes the topic has, plus the word 'vote' or 'votes' accordingly.
7070
* `button_to '+1'` creates an html button with the text '+1'.
71-
* `topic_upvote_path(topic)` creates the appropriate URL for the action we want to invoke. In this case, we want to upvote the current topic.
72-
* `topic_upvote_path(topic)` would return `/topics/42/upvote` (if topic.id was 42)
71+
* `upvote_topic_path(topic)` creates the appropriate URL for the action we want to invoke. In this case, we want to upvote the current topic.
72+
* `upvote_topic_path(topic)` would return `/topics/42/upvote` (if topic.id was 42)
7373
* `method: :post` ensures we do the create action of CRUD, not the read action.
7474
MARKDOWN
7575
end

0 commit comments

Comments
 (0)