新手问题 Hi @yedingding 有个问题

zhulinpinyu · 2013年01月31日 · 最后由 zhulinpinyu 回复于 2013年02月02日 · 3036 次阅读

clone 你的源码 (https://github.com/sishen/chathip.git) 没做改动。 @yedingding 在 railscast-china live-show 1 中 sessions_controller.测试不能通过。始终报的错误为: 1) SessionsController#create #has user should login in Failure/Error: post :create ActionController::RoutingError: No route matches {:controller=>"sessions", :action=>"create"} # ./spec/controllers/sessions_controller_spec.rb:22:in block (5 levels) in <top (required)>' # ./spec/controllers/sessions_controller_spec.rb:21:inblock (4 levels) in '

2) SessionsController#create #new user should create the user Failure/Error: post :create ActionController::RoutingError: No route matches {:controller=>"sessions", :action=>"create"} # ./spec/controllers/sessions_controller_spec.rb:40:in `block (4 levels) in '

求解!谢谢!

咋木有人 关注呢

route.rb 看看吧

#3 楼 @chucai Mybill::Application.routes.draw do
resources :categories
root :to => "home#index"
match '/auth/:provider/callback', to: 'sessions#create' end

需要 登录 后方可回复, 如果你还没有账号请 注册新账号