Greg Donald · @gd
97 followers · 887 posts · Server ruby.social

Django has auth/perms/roles builtin, works great. Laravel has auth/perms/roles built-in and is fabulous. Spring Boot, Catalyst, similar deals.

Rails has nothing built-in, so a lot of us end up using a 3rd-party POS called Devise that is broken for months at a time blocking other important gem dependency updates. And don't even get me started on those fugly ERB templates.

Is there still nothing better? I DuckDuckGo'd but kept ending up on Devise 😩

#ruby #rails

Last updated 1 year ago

deSilva · @aesthetikx
70 followers · 454 posts · Server ruby.social

devops people, what is your target 1 minute load average for application servers?

#rails

Last updated 1 year ago

Alda Vigdís :topspicy: 🧱 · @alda
704 followers · 5020 posts · Server topspicy.social

Can any of the nerds on here tell me when everything in the ./lib directory stopped being autoloaded by default?

My gut feeling says version 3.0, but I'm going through a legacy codebase presumably running 3.2 that made that assumption.

#rails

Last updated 1 year ago

olivierlacan · @olivierlacan
885 followers · 1692 posts · Server ruby.social

👋 If you know folks looking for help on Ruby/Rails projects, I'm available for freelance work right now.

Old app rescues, big upgrades, feature work, you name it, I either truly enjoy doing it or reluctantly became good at it over the years, and now here we are.

I can also do some pretty nifty DIY heat pump installs and home espresso setups but that'll take a bit longer. 😅

DM or hi@olivierlacan.com to discuss.

PS: double points if you work on climate or science-related work

#ruby #rails

Last updated 1 year ago

Daniel Hoelzgen · @dhoelzgen
31 followers · 9 posts · Server ruhr.social

To allow eager loading scoped associations that require a parameter in my on models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.

#ruby #rails #activerecord

Last updated 1 year ago

Daniel Hoelzgen · @dhoelzgen
31 followers · 9 posts · Server ruhr.social

To allow eager loading scoped associations that require a parameter in my on models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.
To avoid variable leak issues, I added an around action to the top-level controller, clearing the store after each request.

Is this the way to go, or does anyone know a better solution besides Preloaders?

#ruby #rails #activerecord

Last updated 1 year ago

Benoit · @benoit
434 followers · 717 posts · Server ruby.social

Force ActiveRecord to do use prepared statement for a custom query that use LIKE operator.

#rails

Last updated 1 year ago

Stephen · @fractaledmind
5 followers · 3 posts · Server ruby.social

New day, new with post. Today, we look at how to load extensions into our Rails app: fractaledmind.github.io/2023/0

This is made easy because of the amazing work of Alex Garcia (alexgarcia.xyz), who publishes all of his extensions as Ruby gems. Thanks Alex!

#sqlite #rails

Last updated 1 year ago

ralf g. · @oldschooldev
45 followers · 260 posts · Server masto.futbol

DHH: „Open source hooliganism and the TypeScript meltdown“ world.hey.com/dhh/open-source-

„Tool religion“ is an old phenomena, people used to riot on the streets for „VI vs Emacs“!

#rails #typescript #webdev

Last updated 1 year ago

moonglum · @moonglum
218 followers · 960 posts · Server social.yakshed.org

I think it makes sense to define a “stable core set” for . The parts, where it is highly unlikely for DHH to fuck it up (due to the business interests of Microsoft and Shopify):
* Railties/ActionPack/ActionView
* ActiveRecord
* ActiveJob
* ActionMailer

Avoid ActionCable, ActionMailbox, ActionText, ActiveStorage, Hotwire. I’m not sure what to recommend regarding asset pipeline yet…
I think in the The Rails 8 Way, they will all be replaced with alternative gems…

(Inspired by @davetron5000)

#rails

Last updated 1 year ago

masukomi · @masukomi
372 followers · 6632 posts · Server connectified.com

Trying to find ways to improve our CI performance. Started going down the rabbit hole of parallelization. Something about our weird legacy test suite == 🔥💥🔥 when i use turbo_tests or flatware-rspec.

Whatever. Legacy stuff is legacy.

BUT it occurs to me that I probably wouldn't have this problem if the powers-that-be would have let Rails development switch to using rspec years ago to match literally every rails dev who doesn't work at basecamp.

grrr

#rails

Last updated 1 year ago

Euruko · @Euruko
42 followers · 39 posts · Server ruby.social

Our first game written on Ruby!
or
Free tickets!
Which headline is more engaging?

Check out our raffle!

2023.euruko.org/game

Can you hit the top score with you Ruby knowledge?

#ruby #rails #Euruko2023 #conference #vilnius

Last updated 1 year ago

Markus Feilner :verified: · @mfeilner
719 followers · 5008 posts · Server mastodon.cloud

Those of you that think WE have Infrastructure problems, look at the US. They dont even have a clue how to fix the dead end they're in. Fun fact: High speed trains in the US are called "bullet trains". Of course, what else. :-)

scientificamerican.com/article

#bullettrains #usinfrastructure #rails

Last updated 1 year ago

Benoit · @benoit
433 followers · 701 posts · Server ruby.social

Using bind parameters in Active Record for SQL security and performance.

blog.saeloun.com/2019/10/28/bi

#rails

Last updated 1 year ago

Lucian Ghinda · @lucian
669 followers · 1490 posts · Server ruby.social

You can read more about me on my LinkedIn page linkedin.com/in/lucianghinda

Or find our more detailed testimonials at ghinda.com/recommendations.htm

Or can see how I think about technical problems by reading my technical blog at allaboutcoding.ghinda.com

#job #newjob #me #ruby #rails

Last updated 1 year ago

Git初学者の方へ!コミットメッセージをプロフェッショナルにするテンプレート術
qiita.com/hamusan44/items/8c32

#qiita #ruby #rails #git #github #docker

Last updated 1 year ago

Eric Lund · @etlund
14 followers · 31 posts · Server ruby.social

Using FactoryBot for setting up previews for my ViewComponents seems obvious, but I haven’t run across mention of it. Works great!

#rails

Last updated 1 year ago

Onur Ozer · @onurozer
35 followers · 48 posts · Server ruby.social

Spent a few hours today to build the tiniest possible app to demonstrate concepts for my upcoming talk.

I'm not proud that it's a todo app, but I'm proud that to have crammed Turbo Drive, Turbo Stream, Broadcasts and Stimulus into a single example.

github.com/onurozer/hotwire-in

#rails #hotwire

Last updated 1 year ago