Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def destroy
  2.     @tag = Tag.find(params[:id])
  3.     @tag.destroy
  4.     @pt = PostTag.find(:all, :conditions => {:tag_id => params[:id]})
  5.     @pt.destroy
  6.     redirect_to dashboard_path
  7.   end