You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my rails app, I want to search through fields in a model Rentalcontract like firstname, lastname, but also I need a second filter option to sort that search result alphabetically ordered by lastname. How can I achieve this using ransack? Any help is so much appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am new to ransack (and also ruby (and) on rails and unfortunately the documentation was not 100% clear to me.
In the ransack docs I found this bit of information which looks like something I need.
In my rails app, I want to search through fields in a model
Rentalcontract
likefirstname, lastname
, but also I need a second filter option to sort that search result alphabetically ordered by lastname. How can I achieve this using ransack? Any help is so much appreciated!Beta Was this translation helpful? Give feedback.
All reactions