Skip to content

Commit

Permalink
Add the form_for issue to the FAQ.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 5, 2009
1 parent 5a540bf commit 5760e12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
[Haml]/[Sass], punctuation
Don't forget docs
[2.4] Syntax highlighting?
** FAQ
form_for needs -, not =

* Code
** Haml
Expand Down
14 changes: 14 additions & 0 deletions doc-src/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 5760e12

Please sign in to comment.