Class: SearchController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SearchController
- Defined in:
- app/controllers/search_controller.rb
Instance Method Summary (collapse)
Methods inherited from ApplicationController
Instance Method Details
- (Object) index
3 4 5 6 7 8 9 10 |
# File 'app/controllers/search_controller.rb', line 3 def index @search ||= Search.new(params[:search]) flash.now[:alert] = t(:invalid_search) unless @search.valid? respond_to do |format| format.html format.js end end |