search for: floor_plan

Displaying 2 results from an estimated 2 matches for "floor_plan".

2006 Mar 10
0
link_to(... :popup => true) problem
I have a file_column that points to a pdf. I want that pdf to open in a new window, thus wrote the code: <%= link_to(''PDF version'', url_for_file_column(''floor_plan'', ''pdf_file''), :popup => true) %> which generates the code: <a href="/floor_plan/pdf_file/12/first_floor.pdf" onclick="window.open(this.href);return false;">PDF version</a> The problem is that while this works in IE/Win it opens...
2007 Jun 02
2
Server-side Image Maps in Rails
...er-side image map to allow users to click anywhere in an area and have a new element appear at the location they clicked. Everything was going well, until it came time to connect the routing map. 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/generat...