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

Do not pass arguments to edit_profile_path #558

Merged
merged 1 commit into from
Jul 8, 2014
Merged

Conversation

bcobb
Copy link
Contributor

@bcobb bcobb commented Jul 8, 2014

🍴

The profile routes are defined by a resource (not resources), so passing in a User to the edit_profile_path route helper results in URLs like /profile/edit.foobar. It technically works, but is not correct.

Doing so results in URLs like /profile/edit.foobar, which works the same
as /profile/edit, but looks silly.
@sethvargo
Copy link
Contributor

👍

bcobb added a commit that referenced this pull request Jul 8, 2014
Do not pass arguments to edit_profile_path
@bcobb bcobb merged commit 78c0fc3 into master Jul 8, 2014
@bcobb bcobb deleted the edit-profile-path-fix branch July 8, 2014 13:44
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

Successfully merging this pull request may close these issues.

2 participants