The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Routes

I modified the index portion, so now I can visit my site at: localhost:3000/blog

i then made an application.html.erb template. I wanted to be able to view a blog entry like so: localhost:3000/blog/1.
I added a new file to my blog folder in app/views called "show.html.erb".

I did add all of the DB scripting, I know thats right.

I then added this to my routing file:

map.resources :blog

I now get an error: blog_url failed to generate from {:action=>"show", :controller=>"blog"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["blog", :id] - are they all satisfied?

when I visit localhost:3000/blog.

If I change map.resources :blog to map.resource :blog it works, but I would have to view a blog entry like so: localhost:3000/blog/show/1

What am I doing wrong.

---------------------------
Edit: in my application.erb.html I was using blog_path, and that was causing the error above. Now that map.resources works, my show still does not. When I go to localhost:3000/blog/1, it now displays: