added url posts_path to form, made a create action in the posts controller