mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Documentation Working with Javascript Fix remote: true (#44123)
* Fix remote: true The explanation after the form example, "Because the form's remote option is set to true, the request will be posted to the UsersController as an Ajax request, looking for JavaScript..." Infers the form example has the remote: true * Update guides/source/working_with_javascript_in_rails.md change to local: false as suggested by @p8 Co-authored-by: Petrik de Heus <petrik@deheus.net>
This commit is contained in:
parent
97e3c32523
commit
f63980173e
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ The index view (`app/views/users/index.html.erb`) contains:
|
|||
|
||||
<br>
|
||||
|
||||
<%= form_with model: @user do |form| %>
|
||||
<%= form_with model: @user, local: false do |form| %>
|
||||
<%= form.label :name %><br>
|
||||
<%= form.text_field :name %>
|
||||
<%= form.submit %>
|
||||
|
|
Loading…
Reference in a new issue