Skip to content

Instantly share code, notes, and snippets.

@rjfranco
Created August 31, 2011 00:40
Show Gist options
  • Save rjfranco/1182536 to your computer and use it in GitHub Desktop.
Save rjfranco/1182536 to your computer and use it in GitHub Desktop.
Map Location Partial
- @area_maps.each do |map|
= f.input :area, :as => 'select', :collection => map.areas, :id => 'bad_id', :required => false, :wrapper_html => {:class => "map_selector_#{map.id}", :style => "display:none"}
= f.input :location_name, :required => false, |
:hint => "Use to describe an abstract location, e.g., \"By the front door\".<br /> This is only used if a location has not been selected.", |
:wrapper_html => { |
:class => "location_description", |
:style => "display:none" |
} |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment