MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          公告

          一些零碎的筆記,希望能對你有用處。


          搜索

          •  

          積分與排名

          • 積分 - 598155
          • 排名 - 80

          最新評論

          response_to等

          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>
          測試時報錯,后發現是測試里提供的數據沒有通過驗證
          主站蜘蛛池模板: 梓潼县| 沙雅县| 平定县| 瓮安县| 咸阳市| 清远市| 凤山市| 昌吉市| 五常市| 汶上县| 棋牌| 松江区| 绥德县| 江都市| 五莲县| 东安县| 金塔县| 宿州市| 呼玛县| 缙云县| 睢宁县| 涟源市| 鲁山县| 石城县| 柘荣县| 偏关县| 马公市| 奎屯市| 鲁山县| 沧源| 罗田县| 仪征市| 息烽县| 光泽县| 申扎县| 九台市| 德江县| 嘉峪关市| 永嘉县| 利川市| 罗平县|