changed posts_url to post_path in update