chris@257: <%= chris@257: file = Attachment.find(params[:id]) chris@257: active_id = "active-" + file.id.to_s chris@257: link_to_remote image_tag(file.active? ? 'true.png' : 'false.png'), chris@257: :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, chris@257: :update => active_id chris@257: %>