Use local variable instead of instance variable [ci skip]
Update render yield docs to use `search` local variable instead of `@q` instance variable
This commit is contained in:
parent
a3478f1685
commit
b49e601e3a
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue