Posted on 2010-02-18 02:42
leekiang 閱讀(281)
評論(0) 編輯 收藏 所屬分類:
ruby
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>
測試時報錯,后發現是測試里提供的數據沒有通過驗證