Hi all,

I've built a Pylons application, added some controllers and have pages
working, but I'm a little confused about setting a route in
routing.py. I've got a route like this:

map.connect('/', controller='dashboard', action='index')

And in the navigation menu of my home page I've got this:

${h.link_to('Home', h.url_for("/"))}

which should (I think) send the user to the /dashboard/index url when
the home link on the navigation menu is clicked. However, it goes to
the default Pylons project intro page rather than my mapped route.
When I run the paster shell and enter mapper.match('/') it returns
controller='dashboard', action='index' as I would expect, but it just
doesn't go there. If if navigate to http://localhost:5000/bashboard/index
I go where I expect to.

What am I missing or doing wrong?

Thanks in advance!
Doug

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to