I have tried to destroy tags from the given code but it's not working. How can it be accomplished?
@tag = Tag.find_by_name(params[:name])
@tag.destroy
render :update do |page|
page[:divtag].innerHTML = render :partial => "controls/tag_list"
end