I have a simple database in ruby on rail and i want to know if there is a way to display properly the result of a request in ruby.
For example in a base which is like this : User(id, name, email) whith a content like that :
(1, jack, j@j.com);(2, jhon, jo@jo.com); (3, janet, j@j.com)
I do rails console
then User.where(email: "j@j.com")
It return two line but it's not correctly formated to be lisible. Do you know some command in order to well format the output when you have multiple line.
Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire