Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
I love digging through the docs and finding an example that kind of explodes your brain a bit—some piece of functionality you might otherwise gloss over.
-
If you have two or more render statements in your controller action, you might consider extracting some of the logic into a before action.
-
In software development we’re often given advice in absolute terms: “Service Objects are an anti-pattern.”
-
Anytime your controllers start to accumulate non-standard CRUD (Create, Read, Update, Delete) action names, you may consider extracting the action into a new controller where the action can become one of the standard CRUD action names.
-
💡 Trigger Warning!
-
Did you know you can set controller-specific middleware in your Rails controller with the use method?
-
Recently, we were trying to write a similarity(...) query in Postgres, and needed to pass in a parameter into a SELECT clause.