app/views/shared/_multi_selection.html.erb
<%= select_tag("#{form_field}_select", options_for_select(values.collect { |ff| [ff.send(field_show), ff.send(field_store), :class => "selected"] }, values.collect { |fs| fs.send(field_store) }),
{:multiple=>true, :id => "#{form_field}_select"}) %>
<script type="text/javascript">
$(document).ready(function(){
$("#<%= form_field %>_select").fcbkcomplete({
json_url: "<%= autocomplete %>",
addontab: true,
maxitems: 100,
height: 15,
cache: true,
width: <%= width || 300 %>
});
});
</script>