Tips for Job Interviews as a Junior Software Developer Sep 27, 2020
As coding bootcamps such as Coder Academy and General Assembly churn out more and more software developers, and as more and more people…
It was confirmed that DataMapper is incorrectly setting table names in SQL JOINs.
So for instance, the following code would generate an SQL error:
type.jobs.all(:"country.name".like => "%#{params[:location]}%")
There is a workaround, however the workaround requires manual looping of the dataset thus produces N+1 queries.
type.jobs.all.reject do |job|
! job.country.name.downcase.include?(params[:location].downcase)
end
But at least it works. ;)