%h1 Editing data

%form.form-horizontal(method='post'){action: uri(“/data/#{@data.id}”)}

!= haml :_form, locals: {task: @task}
%input(name='_method' type='hidden' value='put')
.form-group
  .col-sm-offset-2.col-sm-10
    %button(name='commit' type='submit') Update