Created
June 5, 2015 15:12
-
-
Save Rosa-Fox/618d7fc11356fda290a9 to your computer and use it in GitHub Desktop.
show.erb the second
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="todo"> | |
<div class="panel panel-default"> | |
<div class="container"> | |
<div class="panel-body"> | |
<h2><%= @todo.id %>: <%= @todo.title %></h2> | |
<h4>More Info: <%= @todo.description %></h4> | |
<div class="row"> | |
<div class ="col-md-1"> | |
<a href="/todo" class="btn btn-default">Back</a> | |
<a href="/todo/<%= @todo.id %>/edit" class="btn btn-info">Edit</a> | |
<form action="/todo/<%= @todo.id %>complete" method="post"> | |
<input type="hidden" name="_method" value="put" /> | |
<input type="submit" value="Complete" class="btn btn-success"> | |
</form> | |
<form action="/todo/<%= @todo.id %>" method="post"> | |
<input type="hidden" name="_method" value="delete" /> | |
<input type="submit" value="Delete" class="btn btn-danger"> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 12 lacks a
/
between the todo.id and the completeform action="/todo/<%= @todo.id %>/complete"