journey

Routing error when updating to Rails 3.2.6 or Rspec 2.11.0

筅森魡賤 提交于 2019-12-18 06:06:47
问题 After upgrading to Rails 3.2.6 or Rspec 2.11.0, my specs starts to show routing errors like the following: 4) UsersController GET activate activation code not exist Failure/Error: subject{ get :activate } ActionController::RoutingError: No route matches {:controller=>"users", :action=>"activate"} There is also a after each hook error An error occurred in an after(:each) hook RSpec::Mocks::MockExpectationError: (#<EmailSubscriber[...]>).update_attributes({:enable=>true}) expected: 1 time

Devise /users/sign_in redirecting to wrong controller

本秂侑毒 提交于 2019-12-07 12:19:49
问题 Vitals: ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] Rails 3.2.7 Devise 2.1.2 The GET /users/sign_in is attempting to redirect to the wrong controller. It has stopped redirecting to wecome#welcome (which works), ans is now redirecting to devise/welcome#welcome, which does not exist and causes a 500 error on the redirect with the following error logged: ActionController::RoutingError (No route matches {:controller=>"devise/welcome", :action=>"welcome"}): This started recently, and

How to fix broken devise routing under journey 1.0.4

Deadly 提交于 2019-12-06 16:22:21
I began troubleshooting my "sudden" broken routes problem in this SO question: Devise /users/sign_in redirecting to wrong controller and with help I was able to isolate the issue to the upgrade from journey 1.0.3 to 1.0.4 that occurred when I updated to rails 3.2.7. As you know, we need to be at rails 3.2.8, to apply important security fixes, but this means I must use journey 1.0.4, which breaks my devise routes. For instance, my custom new_user_session route is welcome#welcome, but it is being decoded to devise/welcome#welcome which does not exist. Has anybody else run into this love triangle

Devise /users/sign_in redirecting to wrong controller

℡╲_俬逩灬. 提交于 2019-12-05 19:46:29
Vitals: ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] Rails 3.2.7 Devise 2.1.2 The GET /users/sign_in is attempting to redirect to the wrong controller. It has stopped redirecting to wecome#welcome (which works), ans is now redirecting to devise/welcome#welcome, which does not exist and causes a 500 error on the redirect with the following error logged: ActionController::RoutingError (No route matches {:controller=>"devise/welcome", :action=>"welcome"}): This started recently, and appears to have been caused by something in a series of gem updates. It used to work perfectly. Does

How to fix broken devise routing under journey 1.0.4

匿名 (未验证) 提交于 2019-12-03 09:58:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I began troubleshooting my "sudden" broken routes problem in this SO question: Devise /users/sign_in redirecting to wrong controller and with help I was able to isolate the issue to the upgrade from journey 1.0.3 to 1.0.4 that occurred when I updated to rails 3.2.7. As you know, we need to be at rails 3.2.8, to apply important security fixes, but this means I must use journey 1.0.4, which breaks my devise routes. For instance, my custom new_user_session route is welcome#welcome, but it is being decoded to devise/welcome#welcome

CF 436(DIV.2)c

匿名 (未验证) 提交于 2019-12-03 00:19:01
C. Bus time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A bus moves along the coordinate line Ox from the point x to the point x a . After starting from the point x , it reaches the point x a , immediately turns back and then moves to the point x . After returning to the point x it immediately goes back to the point x a and so on. Thus, the bus moves from x to x a and back. Moving from the point x to x a or from the point x a to x is called a bus journey . In total, the bus must make k journeys. The petrol tank of the bus can hold b

Routing error when updating to Rails 3.2.6 or Rspec 2.11.0

怎甘沉沦 提交于 2019-11-29 10:45:45
After upgrading to Rails 3.2.6 or Rspec 2.11.0, my specs starts to show routing errors like the following: 4) UsersController GET activate activation code not exist Failure/Error: subject{ get :activate } ActionController::RoutingError: No route matches {:controller=>"users", :action=>"activate"} There is also a after each hook error An error occurred in an after(:each) hook RSpec::Mocks::MockExpectationError: (#<EmailSubscriber[...]>).update_attributes({:enable=>true}) expected: 1 time received: 0 times occurred at [...]/spec/controllers/users_controller_spec.rb:75:in `block (3 levels) in