I froze to Rails 2.0.1 and I’m creating a simple nested blog with
map.resources :blogs do |blog|
blog.resources :posts
end
in routes.rb
If I run rake routes, it shows a route to blog_posts
blog_posts GET /blogs/:blog_id/posts {:controller=>“posts”,
:action=>“index”}
however if I use blog_posts in a view, for example
<%= link_to “manage blog”, blog_posts(@blog)%>
I keep getting the error
undefined method `blog_posts’ for #ActionView::Base:0x81bda0c
Any ideas of what I could be doing wrong?