Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.html.erb @ 1019:76cce7d14bd0 browsing
Don't want tags controller & view after all
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 13 Nov 2012 10:14:53 +0000 |
parents | 04114f36670d |
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 %>