Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Plz ignore. Attempting to get formatting right

#1778

I'm having trouble getting my comments to format properly on Lighthouse. I'm using this ticket & comments to try to get it right.


cond_string = big computation 
order_string = bigger computation 
join_string = biggest computation

Venue.all(:joins => join_string, :conditions => cond_string, :order => order_string)

Without, I'm stuck with:


cond_string = big computation 
order_string = bigger computation 
join_string = biggest computation

options = {} options[:conditions] = cond_string unless cond_string.empty? 
options[:order] = order_string unless order_string.empty? 
options[:joins] = join_string unless join_string.empty?

Venue.all(options)

Unless I "really shouldn't" pass in an empty options string, either.

Reported by Student · January 18th, 2009 @ 03:38 PM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to duplicate

    Please don't file duplicate tickets. Thanks - #1765 AR::Base#all(:order => '') => invalid SQL

    January 18th, 2009 @ 06:01 PM