Hello, I was going through the tutorial in this link:
http://guides.rubyonrails.org/getting_started.html#adding-a-link
Wehn I came to section 6.2, I added the link using following code
<%= link_to “My Blog”, posts_path %>
and I get this error:
undefined local variable or method `posts_path’ for #<ActionView::Base:
0xb5eb0888>
Couldn’t figure where I have gone wrong. Any help?
Thanks in advance.