Add the form_for issue to the FAQ.

This commit is contained in:
Nathan Weizenbaum 2009-07-04 17:21:26 -07:00
parent 5a540bf2e5
commit 5760e12384
2 changed files with 14 additions and 2 deletions

2
TODO
View File

@ -8,8 +8,6 @@
[Haml]/[Sass], punctuation
Don't forget docs
[2.4] Syntax highlighting?
** FAQ
form_for needs -, not =
* Code
** Haml

View File

@ -96,6 +96,20 @@ For example:
really_move.it.into( |
:a => @helper) |
### `form_for` is printing the form tag twice!
Make sure you're calling it with `-`, not `=`.
Just like in ERB, you have to do
<% form_for stuff do %>
...
<% end %>
in Haml, you have to do
- form_for stuff do
...
### I have Haml installed. Why is Rails (only looking for `.html.erb` files | rendering Haml files as plain text | rendering Haml files as blank pages)?
{#q-blank-page}