Only specific fields in sort_select #151

Closed
knasyrov opened this Issue Oct 24, 2012 · 5 comments

Comments

Projects
None yet
3 participants

Is it possible to specify for sort_select only specific fields?

Member

radar commented Oct 26, 2012

I don't understand this question. Could you please elaborate?

sort_select helper displays all the for sorting fields available in the model. I need to be able to filter these fields, not to display them all, for example, to display only name and rating fields.

sorry for my english :)))

znz commented Jan 10, 2013

ransackable_attributes also effects sort_select's fields.
see http://stackoverflow.com/questions/13276263/rails-ransack-custom-attribute-select

Member

radar commented Sep 1, 2013

Fixed by #204.

radar closed this Sep 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment