aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorDaniel Amireh <daniel@amireh.org>2016-11-05 14:19:28 +0100
committerGitHub <noreply@github.com>2016-11-05 14:19:28 +0100
commitb49e601e3a1846d6c720ef0a40639287e41b680f (patch)
treebd6ec14e6c598467d508e50afc5bd0bacc6725b9 /guides
parenta3478f1685a507874c710c8461cbfd6be84d95c0 (diff)
downloadrails-b49e601e3a1846d6c720ef0a40639287e41b680f.tar.gz
rails-b49e601e3a1846d6c720ef0a40639287e41b680f.tar.bz2
rails-b49e601e3a1846d6c720ef0a40639287e41b680f.zip
Use local variable instead of instance variable [ci skip]
Update render yield docs to use `search` local variable instead of `@q` instance variable
Diffstat (limited to 'guides')
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index 7e4ec5ba7e..0c24ec884c 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -1082,7 +1082,7 @@ definitions for several similar resources:
* `shared/_search_filters.html.erb`
```html+erb
- <%= form_for(@q) do |f| %>
+ <%= form_for(search) do |f| %>
<h1>Search form:</h1>
<fieldset>
<%= yield f %>