Will Gray

Results 25 comments of Will Gray

I'm using searchlogic in an old rails 2.3 app (using ransack with all 3.x apps; really need to upgrade this one) and just ran into a case that could use...

Just ran into this today with the INNER JOIN for :include'd has_one association and LEFT OUTER JOIN for search conditions on the same has_one association. MySQL throws a "Not unique...

You can use through associations instead of denormalizing ``` ruby class Sales < ActiveModel::Base belongs_to :order_request has_one :business_site, :through => :order_request has_one :business, :through => :business_site end ``` so the...

Sorry, I tried entering that without looking at how I'd done it before. I've updated my comment.

It does use joins, but it works for me with 1.6.8. Did something change in 2.0 to break that? And thanks for the correction.

To clarify, with Cancan 1.6.8 (or branch 2.0) and ActiveRecord 3.2.8, all the through associations, and these abilities ``` ruby can :manage, Sale, :business => { :id => 3 }...

I'm getting a `RecordNotFound` with an optional shallow route in 1.6.10 (works in 1.6.9). ``` ruby # routes resources :parents do resources :children, :shallow => true end resources :children, :only...

Using a syntax match could interfere with syntax highlighting. But that is the only way to use any sort of character to mark indents.

Moving the `:match` to the end of the vimrc doesn't change anything because plugins are loaded after the vimrc. The reference doesn't say, but I'm wondering if the priority of...