Fix haml/formtastic grammar in example

This commit is contained in:
John Joseph Bachir 2012-07-11 13:08:56 -03:00
parent bb060cd6c2
commit 202df42379
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ We will show the sample usage with the different possible form-builders.
Inside our `projects/_form` partial we then write: Inside our `projects/_form` partial we then write:
````haml ````haml
- f.inputs do = f.inputs do
= f.input :name = f.input :name
= f.input :description = f.input :description
%h3 Tasks %h3 Tasks
@ -105,7 +105,7 @@ Inside our `projects/_form` partial we then write:
= render 'task_fields', :f => task = render 'task_fields', :f => task
.links .links
= link_to_add_association 'add task', f, :tasks = link_to_add_association 'add task', f, :tasks
-f.actions do = f.actions do
= f.action :submit = f.action :submit
```` ````