Closed memaker closed 11 years ago
When a 'term' is deleted, we shall delete all its associated tweets
I have added this code to the 'term' controller
def destroy @term = Term.find(params[:id])
## it also deletes the associated tweets @tweets = @term.tweets @tweets.destroy_all @term.destroy
When a 'term' is deleted, we shall delete all its associated tweets