Using ransack to filter result

后端 未结 0 1208
生来不讨喜
生来不讨喜 2021-02-14 20:44

How can i use ransack to filter all results

#controller.rb

.......
       def index
        @q = Business.ransack(params[:q])
        @business = @q.result         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题