新手问题 Hi @yedingding 有个问题

zhulinpinyu · January 31, 2013 · Last by zhulinpinyu replied at February 02, 2013 · 3035 hits

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

You need to Sign in before reply, if you don't have an account, please Sign up first.