Acts_as_taggable


#1

does anyone now how to delete tags. The code below doesn’t seem to work

def remove_tag
@page = Page.find(params[:id])
@tag = Tag.find(params[:tag])
arr = @page.tag_names
arr.delete( @page.name )
@page.tag( arr, :clear => true )
@page.save
render( :partial => ‘show_tags’ )
end