Speed ​​Up Your Development Time With Queries in Ruby on Railsby@jpablomgil

Speed ​​Up Your Development Time With Queries in Ruby on Rails

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Ruby and ActiveRecord are Ruby's Ruby gem, which builds common query methods on simple class methods. The same SQL queries are made by ActiveRecord, but the abstract ones to short story methods like find, group, select, select and order. Ruby's ActiveRecord Query Interface documentation explains how to use these methods in a relational database. For example, the find method shows the query that was executed, in addition to the result, obtained this time an Array with the 2 records of the "User" table that we required.

People Mentioned

Mention Thumbnail
featured image - Speed ​​Up Your Development Time With Queries in Ruby on Rails
Juan Pablo Gil HackerNoon profile picture

@jpablomgil

Juan Pablo Gil

Receive Stories from @jpablomgil

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa