Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Problem with 'nil' values in scopes (wrong number of bind variables)

#21

Why isn't a "nil" value pushed when parent_id is nil ?

I.E., why adding the condition "unless result.value.nil?" at line 70 in file finders.rb ?

MyModel.first.self_and_siblings.first ActiveRecord::PreparedStatementInvalid: wrong number of bind variables (0 for 1) in: my_models.parent_id is ?

Reported by GaĆ«l SECHAUD · April 21st, 2009 @ 06:19 AM

State: new
Milestone: none
Assigned to: nobody

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.