Skip to content

Added cookbook on using _method in hidden form fields #1603

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

Merged

Conversation

richardmiller-zz
Copy link
Contributor

As per GH-1002


.. code-block:: html+jinja

<form action="{{ path('blog_update', { 'slug': blog.slug }) }}" method="post">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no space after { or before } in the hash.

@richardmiller-zz
Copy link
Contributor Author

@weaverryan updated with your suggested changes. I have changed the first line although I'm still not sure about it.

weaverryan added a commit that referenced this pull request Jul 30, 2012
…cookbook

Added cookbook on using _method in hidden form fields
@weaverryan weaverryan merged commit 2352e7e into symfony:2.0 Jul 30, 2012
weaverryan added a commit that referenced this pull request Jul 30, 2012
@weaverryan
Copy link
Member

Looks great Richard! I'm also not 100% on the first line, but it's much much better and I can't think of anything better, so we'll start with it :). This is a nice little entry - thanks for much for adding it!

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.

None yet

4 participants