Scaffold Todo
This commit is contained in:
10
app/views/todos/show.html.erb
Normal file
10
app/views/todos/show.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @todo %>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this todo", edit_todo_path(@todo) %> |
|
||||
<%= link_to "Back to todos", todos_path %>
|
||||
|
||||
<%= button_to "Destroy this todo", @todo, method: :delete %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user