Permalink
Browse files

Add the form_for issue to the FAQ.

  • Loading branch information...
1 parent 5a540bf commit 5760e12384cadb9913f9088b6865b05115380264 @nex3 nex3 committed Jul 5, 2009
Showing with 14 additions and 2 deletions.
  1. +0 −2 TODO
  2. +14 −0 doc-src/FAQ.md
View
@@ -8,8 +8,6 @@
[Haml]/[Sass], punctuation
Don't forget docs
[2.4] Syntax highlighting?
-** FAQ
- form_for needs -, not =
* Code
** Haml
View
@@ -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}

0 comments on commit 5760e12

Please sign in to comment.