Commit d182f8f2772179738b1cf7570c512a346baf671d
1 parent
8ed11f94
Exists in
relation
Updated readme [skip ci]
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
README.md
... | ... | @@ -669,8 +669,8 @@ First, add a route and controller action. |
669 | 669 | ```ruby |
670 | 670 | class MoviesController < ApplicationController |
671 | 671 | def autocomplete |
672 | - movies = Movie.search(params[:query]).fields("title^5", "director"). | |
673 | - match(:word_start).limit(10).load(false).misspellings(below: 5) | |
672 | + movies = Movie.search(params[:query]).fields("title^5", "director") | |
673 | + .match(:word_start).limit(10).load(false).misspellings(below: 5) | |
674 | 674 | |
675 | 675 | render json: movies.map(&:title) |
676 | 676 | end | ... | ... |