Class: Spree::SuggestionsController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::SuggestionsController
- Defined in:
- app/controllers/spree/suggestions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/spree/suggestions_controller.rb', line 3 def index suggestions = Spree::Suggestion.relevant(params['term']) render :json => suggestions.map(&:keywords) end |