%form{ action: '/', method: "POST" } %input{ type: "text", name: "task[name]" } %input.button{ type: "submit", value: "New Task >>" } %h2 My Tasks %ul.tasks - @tasks.each do |task| = render(:haml, :task, locals: { task: task })