view app/views/attachments/toggle_active.rhtml @ 736:51c97efbe241 feature_318

Small fixes -- avoid troubles when trying to retrive root /hg URL
author Chris Cannam
date Fri, 04 Nov 2011 16:32:17 +0000
parents ce817f379723
children
line wrap: on
line source
<%=
file = Attachment.find(params[:id])
active_id = "active-" + file.id.to_s
link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'),
  :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file},
  :update => active_id
%>