This project is archived and is in readonly mode.

#1778 ✓duplicate
Student

Plz ignore. Attempting to get formatting right

Reported by Student | January 18th, 2009 @ 03:38 PM | in 2.x

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages