Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.rhtml @ 747:ae4054db4f3c feature_14
retrieving the project tags list correctly (though link is still broken - linking to the issues pageā¦)
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 Nov 2011 14:21:34 +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 %>