ActionController::UrlGenerationError on rails upgrade to 5.1.3
spurnaye opened this issue · 1 comments
spurnaye commented
Following lines stopped working after upgrading from rails 4.2.3 to 5.1.3
'''
get :new, params: {user_id: user.id}
'''
with following error
'''
ActionController::UrlGenerationError:
No route matches {:action=>"new", :controller=>"the_controller", :user_id=> 123}
'''
spurnaye commented
Closing as this was issue with defining the correct routes in rails 5.1.3