提交 194a9338 编写于 作者: Y Yoshiyuki Hirano

Add local option to Message form [ci skip]

* MessagesController redirects to `GET /message/:id`.
* It looks it don't expect XHR request.
* `form_with` behaves for XHR by default.
* I've added `local: true` option to `form_with`.
上级 bf206dc2
......@@ -63,7 +63,7 @@ end
```
```erb
<%= form_with model: @message do |form| %>
<%= form_with model: @message, local: true do |form| %>
<%= form.text_field :title, placeholder: "Title" %><br>
<%= form.text_area :content %><br><br>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册