[Rails] Re: real array via has_many

2016-05-28 Thread Zdravko Balorda
I think I found a solution: act_as_list. Sometimes we just need persistant storage. Thanks. -- 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 unsubscribe from this group and stop receiving ema

Re: [Rails] Re: real array via has_many

2016-05-28 Thread Colin Law
On 27 May 2016 at 14:53, Zdravko Balorda wrote: > Yes. So how one can handle arrays properly? Can you give us more information on what is in your array and for what reason they are sorted? Someone may be able to suggest a better solution to the problem. Please quote the relevant parts of previo

Re: [Rails] Re: real array via has_many

2016-05-27 Thread Norbert Melzer
You have to add an index column and use order by. SQL as a standard does not guarantee any ordering unless you enforce it, so any implementation can return elements in the order that is most efficient. Zdravko Balorda schrieb am Fr., 27. Mai 2016 15:53: > Yes. So how one can handle arrays proper

[Rails] Re: real array via has_many

2016-05-27 Thread Zdravko Balorda
Yes. So how one can handle arrays properly? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+u