Gamaliel Amaudruz
Gamaliel Amaudruz
The documentation states: User.id_or_age_lt_or_username_or_first_name_begins_with(10) => "id < 10 OR age < 10 OR username LIKE 'ben%' OR first_name like 'ben%'" But I believe this is wrong and the result should...
Optimize DB hits when supplying a scope (AR:Relation)
Some of my findings using cc2.0: 1 . Craps out with multiple rules going through the same nested association: ``` ruby Sale.joins(:order_request => :business_site).where({:order_request => {:business_site => {:business_id => 12}}}...
Since Firefox 29 has started validating number fields, if you remove newly created fields with invalid data, they prevent the form to be submitted even though they are deleted (hidden)...
Hello, As soon as I attach Populator (which should be compatible with Rails3, shouldn't it?), I get the following error: undefined method `execute' for class`ActiveRecord::ConnectionAdapters::OracleAdapter' I use sqlite
I have this: ``` tp [[1,2,3],[44,55,66]], :second, :last, object_class: lambda{|ary| ary.first} ``` which I expect something like: | SECOND | LAST | OBJECT_CLASS | | --- | --- | ---...
Hello, I'm doing something like this to keep the date format inline with the jQuery date picker: ``` erb ETD: From '', :class => 'date_picker', :value => @search.shipment_booking_etd_gteq.try(:to_s,:db)} %> ```...
First of all, I would like to express my love for meta_where. I switched it off for debugging this issue and realized how more elegant is the syntax and the...
I've noticed that in my updated app, subqueries are generated when I supply a relation in a regular where(): ``` Draft.where(id: Draft.limit(2)) # => SELECT "drafts".* FROM "drafts" WHERE "drafts"."id"...