[Rails] Re: [Arel]Building query, but can't get a proper output

2012-03-13 Thread Jeroen van Ingen
Right... stupid me... Thanks anyway ;) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, se

[Rails] Re: [Arel]Building query, but can't get a proper output

2012-03-13 Thread Juan Pablo Avello
El martes 13 de marzo de 2012 15:10:40 UTC+1, Ruby-Forum.com User escribió: > > I have the following code: > > advertisements_arel = Advertisement.order("advertisements.id > DESC").arel > @advertisements = (params[:website_id].present? ? > advertisements_arel.where(:website_id => params