<%form_for prepare_for_form(@attachment), :html => { :multipart => true, :method => :put} do |f|%>
  <% f.fields_for :post do |post_f| %>
	  <%= post_f.hidden_field :title %>
		<%= post_f.hidden_field :text %>
	<% end %>
	
  <%=t('tags')%>:
	<input id="attachment_tags" type="hidden" value="" name="attachment[_tags][]"/>
	<select id="attachment_edit_tags" multiple="multiple" name="attachment[_tags][]">
	  <%=options_for_select_with_class_selected(@space.tags.map{|t| t.name }, attachment.tags.map{|t| t.name})%>
	</select>
  <button type="submit"><%=t("button.update")%></button>
<%end%>
<%form_for prepare_for_form(@attachment), :html => { :multipart => true, :method => :put} do |f|%>
  <%=t('tags')%>:
	<input id="attachment_tags" type="hidden" value="" name="attachment[_tags][]"/>
	<select id="attachment_edit_tags" multiple="multiple" name="attachment[_tags][]">
	  <%=options_for_select_with_class_selected(@space.tags.map{|t| t.name }, attachment.tags.map{|t| t.name})%>
	</select>
  <button type="submit"><%=t("button.update")%></button>
<%end%>
Edit tag form, post bug fixed
Edit tag form, post bug fixed
