Sha256: 563d5bc06382d7d3d66ccdf960249c320b4b72339bb4901f1aa00efeeae8581a
Contents?: true
Size: 319 Bytes
Versions: 16
Compression:
Stored size: 319 Bytes
Contents
class VehiclesController < ApplicationController def index @vehicles = Vehicle.sql_search(params[:search_for]).sql_sort(@sort_by, @sort_dir) end def search_only_index @vehicles = Vehicle.sql_search(params[:search_for]) end def sort_only_index @vehicles = Vehicle.sql_sort(@sort_by, (@sort_dir)) end end
Version data entries
16 entries across 16 versions & 1 rubygems