Top "Find-by-sql" questions

Executes a custom SQL query against your database and returns all the results.

Rails, how to sanitize SQL in find_by_sql

Is there a way to sanitize sql in rails method find_by_sql? I've tried this solution: Ruby on Rails: …

ruby-on-rails ruby-on-rails-3 activerecord find-by-sql
Convert array to ActiveRecord::Relation

I am using find_by_sql for this query, and it iss returning an array. I want to do something …

ruby-on-rails activerecord find-by-sql
find_by_sql with array format in Rails 3

good day guys! I'm using find_by_sql() in rails 3 to fetch records as follows. @list=Email.find_by_sql(["…

ruby-on-rails-3 activerecord model find-by-sql
Is it possible to combine will_paginate with find_by_sql?

In my Rails application I want to use the will_paginate gem to paginate on my SQL query. Is that …

ruby-on-rails will-paginate find-by-sql