← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 7
  1. 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.

  2. If you have two or more render statements in your controller action, you might consider extracting some of the logic into a before action.

  3. In software development we’re often given advice in absolute terms: “Service Objects are an anti-pattern.”

  4. 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.

  5. 💡 Trigger Warning!

  6. Did you know you can set controller-specific middleware in your Rails controller with the use method?

  7. Recently, we were trying to write a similarity(...) query in Postgres, and needed to pass in a parameter into a SELECT clause.