veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

296
active users

#rails

8 posts8 participants0 posts today

Ok, I'm really enjoying using #Phlex in my #rails app.

I started using it in new projec to try (didn't manage to rewrite the layouts and get rid of simple_form, but other than that, I'm full on Phlex).

Now I'm rewriting ViewComponents to Phlex (with help of RubyUI, nice library!), and it's so much cleaner!

I wrote a post about why I like Phlex now, as it would be bit long for here:
dev.to/janmpeterka/using-phlex

Thanks @joeldrapper for this delightful gem!

DEV CommunityUsing Phlex helps me be a better programmerWhat is Phlex? If you are in the Ruby on Rails land, you might have noticed Phlex. A...
Replied in thread

@jofr @ajb the slow argument does generally not work anymore. Since ages.
And since you migrated to Python it's useless to even bring it up here, since you didn't migrate to a faster platform, didn't you? 😉

Library-wise it's a smaller selection of libraries but I'd claim that you can do pretty much everything.

#Rails integrates pretty much with every front-end library but also brings nice solutions with the #hotwirejs ecosystem.

I just upgraded a #Rails app from 7.0 to 8.0 only to realise after agonising for two days that in version 7.1, "eager loading" ActiveStorage records was "fixed" so now it takes 1200 ms to load a page in production instead of 120 ms.

Every year or two (especially with a major version bump), I re-read #Rails intro docs, guides, and onboarding materials

I re-watch intro videos and screencasts

To see what's new, yes
But also to see what ossified ways I have that have been obviated or improved

Too see with fresh eyes

🌗 建立模組化 Rails 應用程式:透過 Active Storage Dashboard 深入剖析 Rails Engine
➤ 使用 Rails Engine 打造高效能、易於使用的檔案管理工具
panasiti.me/blog/modular-rails
作者分享了十年來使用 Rails 開發應用程式的經驗,並探討了使用者對於檔案儲存空間使用情況、未連結檔案以及檔案類型等常見問題。為瞭解決這些問題,作者開發了 Active Storage Dashboard,一個可掛載的 Rails Engine,提供現代化的使用者介面來監控和管理 Active Storage 資料。文章深入探討了 Rails Engine 的概念、架構以及 Active Storage Dashboard 的實作細節,包括路由、URL 生成、配置彈性以及驗證策略,並鼓勵開發者更頻繁地使用 Engine
#Rails #Active Storage #Engine #開發

www.panasiti.meBuilding Modular Rails Applications: A Deep Dive into Rails Engines Through Active Storage Dashboard | Giovanni Panasiti - Personal Website and BlogI’ve been building Rails applications for the last 10 years on a daily base and almost all of them use active storage now. Users are uploading files and then...