Hi, This is my project -> https://github.com/regedarek/ekorezerwacja This is my page -> http://ekorozwoj.heroku.com/events/1 I use act_as_list [code=ruby]class User < ActiveRecord::Base has_many :seats has_many :events, :through => :seats end class Event < ActiveRecord::Base has_many :seats has_many :users, :through => :seats end class Seat < ActiveRecord::Base belongs_to :user belongs_to :event end[/code] I have problem with single :position column for all events. How to sort my users in each own event. Please help. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-23 17:04 UTC
Re: act_as_list, each event has his own postion list
On Mar 23, 4:47 pm, "Darek F." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have problem with single :position column for all events. > How to sort my users in each own event. > Please help. >Are you looking for acts_as_list''s :scope option? Fred> -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.