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

Version Path
sql_search_n_sort-2.1.6 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.5 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.4 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.3 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.2 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.1 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.1.0 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.0.2 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.0.1 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-2.0.0 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.2.0 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.16 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.15 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.13 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.12 test/dummy/app/controllers/vehicles_controller.rb
sql_search_n_sort-1.11 test/dummy/app/controllers/vehicles_controller.rb