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`.
This commit is contained in:
Yoshiyuki Hirano 2017-09-17 17:40:20 +09:00
parent bf206dc2fc
commit 194a93385b
1 changed files with 1 additions and 1 deletions

View File

@ -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>