Vote count:
0
I am new in Ruby on Rails, so forgive me if my question is too obvious. Depending on my knowledge for databases, I am not able doing the following, but I have not work this domain recently.
What I want to do is the following:
I have a table which is called Patients, which has the fields, disease and city.
I want to implement the following query:
Patient.select(city:"Paris")
Can I set the name of the table as a variable to this select statement?
Thank you
asked 1 min ago
Can we set the name of db table as variable in queries in Ruby using SQLite3?
Aucun commentaire:
Enregistrer un commentaire