Got answr by googling. I must add
map.resource :posts
in congfig/routes.rb
Sorry!
On Jul 30, 9:50 pm, Karthikeyan
<mindas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.