Skip to content
This repository
Browse code

updated reference to remote_form_for

  • Loading branch information...
commit 0db9de6cf66b6a4388794efd8801f720ea95f242 1 parent f68287f
Vijay Dev authored
4  railties/guides/source/form_helpers.textile
Source Rendered
@@ -187,7 +187,7 @@ output:
187 187
 
188 188
 Hidden inputs are not shown to the user, but they hold data like any textual input. Values inside them can be changed with JavaScript.
189 189
 
190  
-TIP: If you're using password input fields (for any purpose), you might want to prevent their values showing up in application logs by activating +filter_parameter_logging(:password)+ in your ApplicationController.
  190
+TIP: If you're using password input fields (for any purpose), you might want to configure your application to prevent those parameters from being logged.
191 191
 
192 192
 
193 193
 h3. Dealing with Model Objects
@@ -594,7 +594,7 @@ NOTE: If the user has not selected a file the corresponding parameter will be an
594 594
 
595 595
 h4. Dealing with Ajax
596 596
 
597  
-Unlike other forms making an asynchronous file upload form is not as simple as replacing +form_for+ with +remote_form_for+. With an Ajax form the serialization is done by JavaScript running inside the browser and since JavaScript cannot read files from your hard drive the file cannot be uploaded. The most common workaround is to use an invisible iframe that serves as the target for the form submission.
  597
+Unlike other forms making an asynchronous file upload form is not as simple as providing +form_for+ with <tt>:remote => true</tt>. With an Ajax form the serialization is done by JavaScript running inside the browser and since JavaScript cannot read files from your hard drive the file cannot be uploaded. The most common workaround is to use an invisible iframe that serves as the target for the form submission.
598 598
 
599 599
 h3. Customizing Form Builders
600 600
 

0 notes on commit 0db9de6

Please sign in to comment.
Something went wrong with that request. Please try again.