<form method="post" action="/tasks">
  <input name="description">
  <button>Add</button>
</form>
tasks = ["Buy milk", "Learn Sinatra"]
 
get "/" do
  @tasks = tasks
  erb :index
end
 
post "/tasks" do
  tasks << params[:description]
  redirect "/"
end
