Skip to content

Instantly share code, notes, and snippets.

@petelacey
Created August 18, 2009 19:42
Show Gist options
  • Save petelacey/169912 to your computer and use it in GitHub Desktop.
Save petelacey/169912 to your computer and use it in GitHub Desktop.
...
investigators = User.investigators_for_jurisdictions(event.jurisdiction.place_entity.place)
routing_controls += "<div>Assign to investigator:&nbsp;"
routing_controls += select_tag("morbidity_event[investigator_id]", "<option value=""></option>" + options_from_collection_for_select(investigators, :id, :best_name, event['investigator_id']), :onchange => state_routing_js(:value => h(transition.to_s)), :id => 'morbidity_event__investigator_id', :style => "display: inline") + "</div>"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment