Tagged Questions
7
votes
1answer
140 views
ActiveRecord extension to find next / previous record(s) in one query
I just wrote this gem order_query to find next or previous records relative to the record assuming a (possibly complex) ORDER BY over the records. For example, this ...
3
votes
2answers
94 views
Performance problem getting student demographics report with ActiveRecord
I have two active records StudentDemographics and StudentWeeklyReport both having has_many ...
1
vote
1answer
88 views
Duplicate SQL code in controller
How I can rewrite or refactor my controller code? I have the same SQL query (@plan_gp_users) in all defs.
...