Rails devs: Do you explicitly load concerns in your test suite? Just fixed a weird issue where `has_many` associations from concerns worked in console but not in FactoryBot tests. Fixed with: `Dir[Rails.root.join('app/models/concerns/*.rb')].each { |f| require f }` Suggestions?
⚠️ Developers, please be careful when installing Homebrew.
Google is serving sponsored links to a Homebrew site clone that has a cURL command to malware. The URL for this site is one letter different than the official site.
I have some hard news. My whole team and I were laid off today.
I’m looking for staff/lead Ruby on Rails work. Prefer remote with a Hotwire/turbo frontend :)
My team is all mid to senior and would love a new opportunity as well. Reach out if you know of some great ones!!
PR agencies will hate me for this, but this is how most of them do media placements for startups:
1. They access Icopify .co
2. Choose relevant categories
3. Purchase posts from DR 90+ websites
4. Get mentions and backlinks for business
5. Then easily distribute press release to media outlets
#buildinpublic
Introducing `claude-sonnet-to-gpt-4o-mini` ✍️
Get the quality of Claude 3.5 Sonnet, at a fraction of the cost and latency.
Give one example of your task, and Sonnet will teach 4o-mini (20x cheaper!!) how to do the task perfectly.
And it's open-source: https://t.co/QTt9jSiqVB
🚀 Excited to start a blog series on “The Effective Engineer” by Edmond Lau! Writing to learn and share his brilliant insights. Stay tuned! 💡🔧 #EffectiveEngineer#BlogSeries
💎Ruby on Rails protip: Take control of view/template lookup to better support shared "components" with controller based overrides. It also helps to cleanup your ERB templates a bit. https://t.co/10km3QQRdA
—
For example, with this configuration you'll be able to do something like this:
<%= render "icon", name: "code" %>
Instead of the more vebose:
<%= render "/components/icon", name: "code" %>
—
And, you can override the shared icon component per controller if needed. 🙌
Use `install_if` for conditionally installing your gems ✨💫
If the proc passed to `install_if` returns:
➡️ `true`: the gem is included in the bundle and added to the lockfile
➡️ `false`: the gem is not included in the bundle but is added to the lockfile
#rubyonrails#gemfile