https://www.codecademy.com/en/courses/learn-rails/lessons/one-model/exercises/one-model-create-messages-i
I don’t know what am I doing wrong, the instructions say below the block:
<% @messages.each do |message| %>…<%end%>
add
<%= link_to ‘New Message’,
“messages/new” %>
but the following Error appears:
Make sure to add the ‘link_to’ to app/views/messages/index.html.erb
And I am quite sure I am putting that code line in that file
mtf
#2
Perhaps try writing it on one line.
<%= link_to 'New Message', "messages/new" %>
2 Likes
Thank you!
it worked for me
1 Like
system
closed
#4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.