fjord/memoapp/views/edit.erb

8 lines
389 B
Text

<form action="/memos/<%= params[:id] %>" method="post">
<input type="hidden" name="_method" value="patch">
<label for="title">タイトル</label>
<input type="text" name="title" id="title" value="<%= @memo["title"] %>">
<label for="content">内容</label>
<textarea name="content" id="content"><%= @memo["content"] %></textarea>
<button type="submit" class="edit">変更</button>
</form>