Stupid Newbie Question (why doesn't it work?)

This is a re-post because it seems my last attempt was interpreted as
reply to another thread. My apologies!!

Hey guys…

I just subscribed today and have read through the first couple dozen
posts. I’m VERY excited to jump into Rails development… but until I
have a working development environment, it won’t happen.

I think I’ve gotten it installed and running on my Linux Fedora Core 6
machine, and I can go to localhost:3000 with Mongrel running and get the
“welcome” page. But when I go to anywhere else, such as
localhost:3000/category, to see the tutorial work I’ve done by reading
the article at, I get this in the browser:

Routing Error
no route found to match ‘/category’ with {:method=>"get}

In the development log, I see:


run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:inrun’

run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/bin/mongrel_rails:16:inload’

(404 Page Not Found)

I get the first set of errors often, but am not sure if they’re serious.
The Rendering error makes me wonder if Rails doesn’t know what I’m
using for the web root. What does Rails think is the web root by
default? I’ve been using /var/www/rails but have never set anything to
that value.

Thanks for any help!!


Hi Rob,

do you have a category controller with an index method in it, because
Rails is trying to access this.

Compare and review Rails hosting