Chris Bloom

Results 14 issues of Chris Bloom

Given your example `Person.where("data ? 'foo'")`, how would one rewrite that to use a bound variable? `Person.where("data \? ?")` results in `ActiveRecord::PreparedStatementInvalid: wrong number of bind variables (1 for 2)`.

0 - Backlog

Consider the following model: ``` class Category < ActiveRecord::Base acts_as_indexed :fields => [:name, :description], :if => Proc.new { |c| c.products.count > 0 } has_many :products end ``` If you create...

While discussing solutions to https://github.com/cynicaloptimist/improved-initiative/issues/416 we hit upon the idea of trying to remap the default keyboard bindings so that they don't require modifier keys which can be problematic for...

If you go to http://shawnmclean.github.io/Idle.js/ in Firefox and refresh the page, you'll briefly see idle.js report that "User is not looking at page" before the page repaints. This is also...

Is there a way to tell PHP_Beautifier to add a new line before an else or elseif? I'm currently calling your script with the options "Lowercase() Pear() ArrayNested()". I tried...

When called with `NewsArticles.count_by :published_at, :group_by => "month"` ActiveRecord::StatementInvalid (PGError: ERROR: column "news_articles.published_at" must appear in the GROUP BY clause or be used in an aggregate function It worked fine...

I got a dependabot upgrade PR to upgrade from 4.10 to 4.12. It would be helpful to be able to look at a changelog file to see what I should...

We are displaying a record's change history to users in a simple table format. When a change is made to the foreign key of a belongs_to association the audit log...

I have some template defaults defined in Mandrill for a template. In my mailer I set `default view_content_link: true` but that seemed to override the template defaults for the `from`...

If you have a rails app in a path such as `~/Projects/My Project/myapp` it appears that the cover_me gem is not able to create the coverage folder, and thus can't...