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 ONLamp.com, I get this in the browser:
Routing Error
no route found to match ‘/category’ with {:method=>"get}
In the development log, I see:
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
`each’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in
run’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/bin/mongrel_rails:16:in
load’
/usr/bin/mongrel_rails:16
Rendering
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/templates/rescues/layout.rhtml
(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!!
Rob