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
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
2 matches
Mail list logo