Forum: Ruby on Rails acts_as_taggable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9acb6dd7bd59496bd005c4434a3dd475?d=identicon&s=25 Alexander (Guest)
on 2006-02-19 15:53
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
This topic is locked and can not be replied to.