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
allow the method argument in buttonTo view helper #761
Milestone
Comments
I don't understand this code. What are you trying to do?
…On 10 April 2017 at 02:20, Adam Chapman ***@***.***> wrote:
When trying to use:
#buttonTo(text="Delete", route="thingDelete", key=thing.key(),
method="delete")#
Wheels throws the following exception:
Wheels.IncorrectArguments
The method argument cannot be passed in since it will be set automatically
by Wheels.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#761>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJA9yeySa6dsfUd7Sd07m1m5ZAxGMyRks5ruYPVgaJpZM4M4Off>
.
|
With coldroute built into the core, I want to be able to use the buttonTo helper to use the pseudo delete method. |
I thought it was meant to be |
No, it should be
|
chapmandu
added a commit
that referenced
this issue
Apr 10, 2017
Very nice. I'll have to update the linking docs to use this method because it is much nicer than what I have in there right now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to use:
#buttonTo(text="Delete", route="thingDelete", key=thing.key(), method="delete")#
Wheels throws the following exception:
Wheels.IncorrectArguments
The method argument cannot be passed in since it will be set automatically by Wheels.
Workaround is to implement the form:
The text was updated successfully, but these errors were encountered: