Rails find_by_sql returns object ??

you can use this,

ActiveRecord::Base.connection.select_value("sql query")

Comments

Popular posts from this blog

How to increase Elasticsearch Shard recovery Speed

Install Cpanm module error : No such file or directory opening compressed index

Getting started with Python Flask application with MVC structure