views:

27

answers:

2

I just installed Rails, etc. on a Windows 7 machine.

Created my first app, and am trying to go to the first generated and this is what I get:

Routing Error

No route matches "/say/hello"

Where say is the app name, and hello is the name of the first view.

Thoughts?

+1  A: 

Have you added route in config/routes.rb ?

get 'say#hello'
Casual Coder
+2  A: 

If you're implementing very simple routes (and since this is your first app, I'm assuming that's what you want!), make sure you've un-commented the last route in routes.rb:

match ':controller(/:action(/:id(.:format)))'

This will send /say/hello to the hello action of the say controller.

Mark Westling
Great! This works. It is what I want. I am just learning :)
marcamillion