This project is archived and is in readonly mode.
Calling 'last' on a has_many assoication where the order is specified as a symbol raises an error
-
Rick
- State changed from new to incomplete
I wouldn't call this a bug, I don't think :order was ever meant to take symbols. But, feel free to submit a tested patch so that the problem doesn't come up again.
-
Ken Collins
- Tag cleared.
- 1 on this... I can try to put together a patch too. This just bit me today and a lot of older docs for rails has some examples where a symbol is used.
-
Brad Gessler
I just got bit by this as well because of the outdated rails docs.
-
josh
- No changes were found…
-
Ryan Bigg
- Assigned user set to josh
This is no longer an issue on Rails 2.3.5 or Rails 3.0.0 beta 2.
-
josh
- Assigned user cleared.
-
Ryan Bigg
- State changed from incomplete to invalid