Skip to content

Instantly share code, notes, and snippets.

Created May 3, 2012 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2587957 to your computer and use it in GitHub Desktop.
Save anonymous/2587957 to your computer and use it in GitHub Desktop.
task.slim
li.task id=task.id
= task.name
form.update action="/task/#{task.id}" method="POST"
input type="hidden" name="_method" value="PUT"
-if task.completed_at.nil?
input type="submit" value=" " title="Complete Task"
-else
input type="submit" value="✓" title="Uncomplete Task"
form.delete action="/task/#{task.id}" method="POST"
input type="hidden" name="_method" value="DELETE"
input type="submit" value="×" title="Delete Task"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment