Posts

Showing posts with the label ActiveRecord

Rails find_by_sql returns object ??

you can use this, ActiveRecord::Base.connection.select_value("sql query")