I am receiving the following routing error when attempting to connect to
http://localhost:3000/look/at/15/11/2007:
Routing Error
no route found to match "/look/at/15/11/2007" with {:method=>:get}___________________
Here's what I have for Ch09/router/config/routes.rb (comments redacted):
ActionController::Routing::Routes.draw do |map|
map.connect ':controller/service.wsdl', :action => 'wsdl'
map.connect ':controller/:action/:id'
map.connect "look/at/:day/:month/:year",
:controller => "look",
:action => "at",
:requirements => {:year => / (19|20)\d\d/}
map.connect "anything",
:controller => "look",
:action => "unknown_request"
end
_____________
Here's my at.rhtml code:
<html>
<head>
<title>Routing requirements</title>
</head>
<body>
<h1>Routing Requests</h1>
<br>
Day: <%= @day %>
<br>
Month: <%= @month %>
<br>
Year: <%= @year %>
<br>
</body>
</html>
____________
Routing words just fine for
http://localhost:3000/look/at/:
Routing Requests
Day:
Month:
Year:
But it seems to break down as soon as I add the additional day/month/year routing.