Fix haml/formtastic grammar in example
This commit is contained in:
parent
bb060cd6c2
commit
202df42379
@ -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
|
||||||
````
|
````
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user