All Questions
Tagged with acts-as-list has-many
3
questions
1
vote
0
answers
153
views
Sort collection after associated resource's acts_as_tree/acts_as_list order
I have a SuccessCriterion model that implements both acts_as_tree and acts_as_list so it can be arranged as sorted tree hierarchy. Every success criterion can has many Boilerplate objects.
class ...
0
votes
1
answer
1k
views
Can I use Single Table Inheritance with has_many to get a collection of multiple types
I have a Citation class and I want each Citation to have many Resources. A resource can be a LocalFile, Link (and maybe something like a dropbox file). Resources will share most functionality and ...
1
vote
2
answers
3k
views
Resetting position attribute when using acts_as_list gem? (Rails)
I have a simple Rails 3 app where a Goal has many Objectives. In my views, I allow the user to-reorder the Objectives for any given Goal, and I am using the acts_as_list gem to achieve some of this ...