Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding multiple creates strange ordering #55

Closed
vnguyen13 opened this issue Sep 26, 2012 · 3 comments
Closed

Adding multiple creates strange ordering #55

vnguyen13 opened this issue Sep 26, 2012 · 3 comments

Comments

@vnguyen13
Copy link

I'm now onto an object (license) that has_many of a certain object (progress_point). When I go to add multiple progress points to a license, it gives me mixed results.

The first time I ran it, it gave my progress points "position" (called sequence) values of 1, 2, and 3.

Second time, it ordered my items as 3, 2, 1.

The third time: 1, 3, 2.

class License < ActiveRecord::Base
  has_many :progress_points, :order => 'sequence'  
end
class ProgressPoint < ActiveRecord::Base
  belongs_to :license
  acts_as_list :column => :sequence, :scope => :license
end

Any ideas on why it would do this?

Also, this is how I'm doing the multiple add functionality if you're curious:
http://railscasts.com/episodes/197-nested-model-form-part-2

@vnguyen13
Copy link
Author

I should probably point out that I'm also using the Draggable "Sortable Lists" that's shown here:
http://railscasts.com/episodes/147-sortable-lists-revised

@swanandp
Copy link
Contributor

@vnguyen13 Sorry for responding late, but is still an issue? I think it was fixed in later pull requests.

@brendon
Copy link
Owner

brendon commented Apr 17, 2016

Closing this since there was no response from @vnguyen13.

@brendon brendon closed this as completed Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants