forgeplus/app/controllers/licenses_controller.rb

8 lines
210 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class LicensesController < ApplicationController
def index
#@licenses = License.search(params[:name]).
q = License.ransack(name_cont: params[:name])
@licenses = q.result(distinct: true)
2020-03-09 00:40:16 +08:00
end
end