If the results come out as you'd expect ("resort_1" then "resort_5")
then the issue is in your code somplace.
If they don't, then it may be your version of ActiveRecord.
Change the rails version constant in environment.rb to 2.3.4
then run:
rake rails:freeze:gems # freezes the newer version in vendor
rake rails:update # updates any necessary config and script files
I'm pretty sure that's all you need to do.
It shouldn't break anything although you might notice some behaviors
changing (like the default_scope working as expected) so re-run all of
your tests to be sure.
If you want to try it on a separate git branch to be safe:
git add . # add all the current files
git commit -a -m "Updating to Rails 2.3.4" # commit current settings
to git
git branch update # create a new branch
git checkout update # move to new branch
# then do the necessary steps to update
# make sure everything is working as expected
git checkout master # move back to master branch
git merge update # merge the changes if you're happy with them
git merge update
That oughtta do it.
Let me know if that solves the issue?
You nailed it. The scoping and sorting is working as expected.
Can't believe it was a bug in rails!
Thanks a mil.
My app is now running on 2.3.4 to boot, which I guess is better by .2 !
:-).