Skip to content

Instantly share code, notes, and snippets.

@sushant12
Created June 4, 2017 11:34
Show Gist options
  • Select an option

  • Save sushant12/b51f52f57a6b3bb5699c4fbaec1e5d85 to your computer and use it in GitHub Desktop.

Select an option

Save sushant12/b51f52f57a6b3bb5699c4fbaec1e5d85 to your computer and use it in GitHub Desktop.
<form method="post" action="/update/<%= @task.id%>">
Name: <input type="text" name="task" value="<%= @task.name%>">
Finished?: <input type="checkbox" name="finished" value="1" <% if(@task.finished == 1)%> checked <% end %> >
<input type="submit" value="Save">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment