app/controllers/meetings_controller.rb
# Search meeting results for a specific swimmer
#
Search meeting results for a specific swimmer
Search meeting results for a specific swimmer
def search_swimmer
    params.permit!()
    @title = I18n.t(:search_by_swimmer, { scope: [:meeting] })
    @swimmers_grid = initialize_grid(
      Swimmer,
      order: 'swimmers.complete_name',
      order_direction: 'asc',
      per_page: 20
    )
  end
def search_swimmer params . permit! ( ) @title = I18n . t ( :search_by_swimmer , { scope : [ :meeting ] } ) @swimmers_grid = initialize_grid ( Swimmer , order : 'swimmers.complete_name' , order_direction : 'asc' , per_page : 20 ) end
Search meeting results for a specific swimmer
Search meeting results for a specific swimmer
# [Steve, 20161001] We need to whitelist all parameters for the search query: