Sorry for my noob questions. I use Simple_Form and ERB.HTML for my views. Actually try to implement Cocoon and the guide use SLIM. someone could help me? :)
https://github.com/nathanvda/cocoon
In our projects/_form partial we'd write:
= simple_form_for @project do |f|
= f.input :name
= f.input :description
%h3 Tasks
#tasks
= f.simple_fields_for :tasks do |task|
= render 'task_fields', :f => task
.links
= link_to_add_association 'add task', f, :tasks
= f.submit
In our _task_fields partial we write:
.nested-fields
= f.input :description
= f.input :done, :as => :boolean
= link_to_remove_association "remove task", f