search for: generate_ticket

Displaying 1 result from an estimated 1 matches for "generate_ticket".

2007 Jun 02
2
Server-side Image Maps in Rails
...Here are the relevant parts: In the view, the map is created by -- <%= link_to(image_tag(''floor_plan.png'', :width => ''1000'', :ismap => ''true'', :style => ''position: absolute; top: 150px;''), :action => ''generate_ticket'') %> A click anywhere on the map will generate a url of the form "/report/generate_ticket?287,374" where 287 is the x-coord and 374 is the y-coord. So in the routes.rb file we have (at the top of the list) -- map.connect '':controller/:action?:x,:y'' Now, if...