hi,
switching from metasearch to ransack and not sure how to do this:
@q = Person.ransack(params[:q])
#filter more
@q = @q.id_eq(“test”) if current_user #<< how do i make this work?
@people = @q.result(distinct: true)
hi,
switching from metasearch to ransack and not sure how to do this:
@q = Person.ransack(params[:q])
#filter more
@q = @q.id_eq(“test”) if current_user #<< how do i make this work?
@people = @q.result(distinct: true)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs