Rails 2.0.1 paths

I have installed rails 2.0.1 succesfully.
the problem is that i don’t know how to get the paths working

In my controller i have

def new
@Post = Post.new

in my new.html.erb

<% form_for(Post.new) do |f| %>

The result is
undefined method `posts_path’ for #ActionView::Base:0x25510c0

How can i setup the posts_path method.

Define map.resources :posts in your config/routes.rb

On Dec 10, 2007 6:44 PM, GA Gorter [email protected]

Posted via http://www.ruby-forum.com/.

Ryan B.