How can I build an effective ActiveRecord/SQL query for a table featuring an integer ‘show_days_before_start’ and a datetime ‘start_time’ column to filter records properly?
hey boldpainter37, have u tried chaining your clauses with time funcs? sometimes letting rails do the calc can make the query more dynamic. how do u feel about that approach? anyone else experiancing similar tradeoffs?