Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing error with post action #124

Open
PAMulligan opened this issue Jan 2, 2017 · 0 comments
Open

Routing error with post action #124

PAMulligan opened this issue Jan 2, 2017 · 0 comments

Comments

@PAMulligan
Copy link

PAMulligan commented Jan 2, 2017

When testing a controller with the following code:

post 'http://localhost:3000/api/v4/contacts/', { }, { 'params' => { user_id: '00055294-EE7E-4596-A868-BDD5A90BB51F',
									    name: 'Paul Mulligan',
									    address_1: '7320 15th Ave NW',
									    city: 'Seattle',
									    zip_code_5: '98117',
									    country: 'US'
									}
								}

I'm getting the following error:

ActionController::UrlGenerationError:
   No route matches {:action=>"http://localhost:3000/api/v4/contacts/", :controller=>"api/v4/contacts"}

I have my server running, and this action works with Postman. I'm using Rails 4.2.6 and rspec-rails 3.5.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant