%ul
  
  -@tags.each do |tag|
 
    %li
      =link_to  "#", :remote => true,:onclick => "$('#image_tags_in_form').append('#{escape_javascript(raw('<li>')+check_box_tag("image_file[tag_ids][]", tag.id , true)+raw(" <label>#{tag.name}</label></li>"))}');event.stopPropagation();return false;alert('t');"  do
        =tag.name
        =ic :"arrow-down"
        
        