1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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:
Daniel Amireh 2016-11-05 14:19:28 +01:00 committed by GitHub
parent a3478f1685
commit b49e601e3a

View file

@ -1082,7 +1082,7 @@ definitions for several similar resources:
* `shared/_search_filters.html.erb` * `shared/_search_filters.html.erb`
```html+erb ```html+erb
<%= form_for(@q) do |f| %> <%= form_for(search) do |f| %>
<h1>Search form:</h1> <h1>Search form:</h1>
<fieldset> <fieldset>
<%= yield f %> <%= yield f %>