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