I am following this tutorial (seems good) for Rails. After launch
ruby script/generate scaffold Post
then this link works in one of the erb files:
<%= link_to "My Blog", posts_path %>
WHY? I searched for "posts_path" throughout the application and it was not found anywhere. On the other hand, this
<%= link_to "My Blog", home_path %>
not working as well as the controller.
Where is posts_path indicated?
source share