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