Displaying 1 result from an estimated 1 matches for "routes_by_controller".
2007 Jun 02
2
Server-side Image Maps in Rails
...le we have (at the top of the list)
--
map.connect '':controller/:action?:x,:y''
Now, if I drop into the console, load up the routing map, and evaluate,
this is what I get --
>> rs = ActionController::Routing::Routes
=> #<ActionController::Routing::RouteSet:0x197da14
@routes_by_controller=nil, ...>>
>> rs.recognize_path ''/report/generate_ticket?10,20''
=> {:action=>"generate_ticket", :controller=>"report", :y=>"20",
:x=>"10"}
However, when I click on the image map, the params that are returned to
re...