From f63980173ed30a98a91628c14015fd9ce2c76600 Mon Sep 17 00:00:00 2001 From: Paulo Felipe Souza Date: Sun, 9 Jan 2022 03:35:49 -0300 Subject: [PATCH] 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 --- guides/source/working_with_javascript_in_rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md index 0ae11fb8d2..ee975c2e2c 100644 --- a/guides/source/working_with_javascript_in_rails.md +++ b/guides/source/working_with_javascript_in_rails.md @@ -433,7 +433,7 @@ The index view (`app/views/users/index.html.erb`) contains:
-<%= form_with model: @user do |form| %> +<%= form_with model: @user, local: false do |form| %> <%= form.label :name %>
<%= form.text_field :name %> <%= form.submit %>