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

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

by Juan Pablo Gil4mMay 23rd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Juan Pablo Gil

Juan Pablo Gil

@jpablomgil

L O A D I N G
. . . comments & more!

About Author

Juan Pablo Gil HackerNoon profile picture
Juan Pablo Gil@jpablomgil

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite