fixed variable names inside destroy in  posts_controller, fixed loccation of method