Friday, July 30, 2010

[Rails] Getting error while studying rails

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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate