updated root_path

root_path set to posts#index
updated paths to match it in controllers