Got answr by googling. I must add

map.resource :posts

in congfig/routes.rb

Sorry!

On Jul 30, 9:50 pm, Karthikeyan <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to