All Questions
Tagged with acts-as-list rails-activerecord
3
questions
0
votes
1
answer
45
views
AR equivalent to these SQL statements or how otherwise to use them in Rails?
I wanted to use the gem acts_as_list to reorder lists.
But it doesn't seem to handle more restricted queries than association-based (I want to order lists based both on an association AND objects ...
0
votes
1
answer
2k
views
Rails 4: acts_as_list with complex scope
My model has a string field, bar, that is either a, b, or c. It uses has_ancestry and acts_as_list. I want the list to be scoped on (1) the ancestry, and (2) bar, but I want a and b to be in the same ...
0
votes
1
answer
511
views
Ordering a has_many list in view
I have a model called Person that the user selects five personality Traits for. However, the order they pick them for matters (they are choosing most descriptive to least descriptive).
I know how to ...