I have an array of strings: [“users”, “torrents”, “comments”]
these strings are the names of my bd tables.
how can I in .each loop connect to these tables and select|insert some data?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Avoid using
evalhere is a simple solution using
constantizenote:
constantizewill not allow arbitrary code to evaluated, it will just try to fetch a ruby constant, namely aClass