I don`t want to use 'find_by_sql', but currently it is the only way
to get ordered relation for pagination. It would be good to use 'last'
and 'first' methods.
I have modelname.where(...).union(modelname.where(...))
how i can get something like
modelname.where(...).union(modelname.where(...)).order('something')?
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.