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
I have a Gallery that has_many Photos. Each photo needs an position so they can be ordered by hand, for which acts_as_list works great.
However, each photo can be flagged as featured, and a user can order featured photos as well. In this situation a second set of instance methods and separate position is needed that will store and allow manipulation of the photo when in the context of a list of featured photos.
For example:
I have a Gallery that has_many Photos. Each photo needs an
position
so they can be ordered by hand, for whichacts_as_list
works great.However, each photo can be flagged as featured, and a user can order featured photos as well. In this situation a second set of instance methods and separate
position
is needed that will store and allow manipulation of the photo when in the context of a list of featured photos.The text was updated successfully, but these errors were encountered: