Answer the question
In order to leave comments, you need to log in
How to solve the problem with Rspec tests and routes (routes)?
Here is my routes.rb piece:
resources :users
match '/signup', to: 'users#new', via: 'get'
Failure/Error: before { visit signup_path }
ActionView::Template::Error:
<b> arguments passed to url_for can't be handled. Please require routes or provide your own implementation</b>
Prefix Verb URI Pattern Controller#Action
users GET /users(.:format) users#index
POST /users(.:format) users#create
new_user GET /users/new(.:format) users#new
edit_user GET /users/:id/edit(.:format) users#edit
...
signup GET /signup(.:format) users#new
Answer the question
In order to leave comments, you need to log in
I'm not sure if this will solve the problem, but in general in Rails 4 match is considered deprecated. Useget '/signup', to: "controller#action"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question