I have a general question about rails controllers/models:
I have a model Providers, that represents the table providers in my database.
If I have sql queries (with certain conditions) to gather information from that table, where the SQL code should be implemented, in the model or in the controller?
I have a general question about rails controllers/models: I have a model Providers, that
Share
Generally, if you’re doing anything complex, put it in the model.