All Questions
Tagged with acts-as-list rubygems
5
questions
0
votes
1
answer
578
views
multi position column with acts_as_list
How to use multi position columns with acts_as_list gem ?
for sample :
rails g migration AddPositionToTodoList position:integer position2:integer position3:integer
controller:
todo_list = TodoList....
0
votes
1
answer
276
views
Ruby gem dependency loading
I'm putting some shared models for a rails app inside it's own gem. It's just models, so I'm not using an engine. Getting it set up seemed to work fine until I added the "acts_as_list" gem.
# gem - ...
0
votes
1
answer
61
views
Maintain order of saved attributes list for model
I have two models with a has_many to has_many relationship through a join table.
class Article < ActiveRecord::Base
has_many :authorings, -> { order(:position) }, :dependent => :destroy
...
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 ...
2
votes
1
answer
428
views
Create a custom move_up route and move_down actions/route Rails
I am trying to create two little buttons with an up and down arrow, and sort my Products based on that. I have a model called Product, and am using acts_as_list to keep track of position.
Do I do ...