Scaffold Todo
This commit is contained in:
12
app/views/todos/edit.html.erb
Normal file
12
app/views/todos/edit.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<% content_for :title, "Editing todo" %>
|
||||
|
||||
<h1>Editing todo</h1>
|
||||
|
||||
<%= render "form", todo: @todo %>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Show this todo", @todo %> |
|
||||
<%= link_to "Back to todos", todos_path %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user