Displaying 2 results from an estimated 2 matches for "ids_list".
Did you mean:
id_list
2005 Jun 30
2
Find by ID plus conditions -> ActiveRecord::RecordNotFound
...tual number of notes
returned (e.g. the note with id 54 is excluded) then I get an
ActiveRecord::RecordNotFound, which is raised in active_record/base.rb
line 356:
if result.size == ids.size
return result
else
raise RecordNotFound, "Couldn''t find all #{name.pluralize} with IDs (#{ids_list})#{conditions}"
end
(I have active record version 1.10.1)
The ability to supply a :conditions option in the find (by id) call
seems to conflict with the code above - any condition that would exclude
something with a given (supplied) id would cause this RecordNotFound
issue.
It''s...
2006 Apr 01
12
Repost: Why is rails generating bad SQL?
It looks like I am missing something obvious. ActiveRecord is
generating _really_ bad SQL for this configuration, and I can''t quite
figure it out.
I''ve instrumented ActiveRecord enough to localize the problem somewhat,
and generally by this time I would have a good idea of what I was
missing because it''s all in the source.
It appears that something in