posts_url ?? ?????????? http://localhost:3000/posts
posts_path ?? ????????? /posts
new_post_path ?? ?????? /posts/new
edit_post_path(post)??? /post/:id/edit
redirect_to(@post)???? 會重定向到/post/:id嗎,也就是posts_controller的show
Expected response to be a <:redirect>, but was <200>
測試時報錯,后發現是測試里提供的數據沒有通過驗證
posts_path ?? ????????? /posts
new_post_path ?? ?????? /posts/new
edit_post_path(post)??? /post/:id/edit
redirect_to(@post)???? 會重定向到/post/:id嗎,也就是posts_controller的show
Expected response to be a <:redirect>, but was <200>
測試時報錯,后發現是測試里提供的數據沒有通過驗證