8 lines
402 B
Text
8 lines
402 B
Text
<form action="/memos/<%= @memo['id'] %>" method="post">
|
|
<input type="hidden" name="_method" value="patch">
|
|
<label for="title">タイトル</label>
|
|
<input type="text" name="title" id="title" value="<%= h(@memo['title']) %>">
|
|
<label for="content">内容</label>
|
|
<textarea name="content" id="content"><%= h(@memo['content']) %></textarea>
|
|
<button type="submit" class="button save">保存</button>
|
|
</form>
|