Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= select(
- 'location', 'location_id',
- @locations.collect {|c| [c.name, c.id]},{},
- {"onchange" => "document.location.href='/dashboard/locations/'+this.value",
- "value" => @selected_location.id
- }
- )%>
Add Comment
Please, Sign In to add comment