Skip to content

Instantly share code, notes, and snippets.

@danharper
Created March 22, 2011 16:49
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 danharper/881550 to your computer and use it in GitHub Desktop.
Save danharper/881550 to your computer and use it in GitHub Desktop.
Edit View
<% if @note %>
<form action="/<%= @note.id %>" method="post" id="edit">
<input type="hidden" name="_method" value="put">
<textarea name="content"><%=h @note.content %></textarea>
<input type="checkbox" name="complete" <%= "checked" if @note.complete %>>
<input type="submit">
</form>
<p><a href="/<%= @note.id %>/delete">Delete</a></p>
<% else %>
<p>Note not found.</p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment