The Too Early Breakpoint
An opinion on why we shouldn't switch to the smallest design too early.
Just read βThe Too Early Breakpointβ by @ishadeed.com β and once again, super inspiring to read.
Such a clear way of explaining a subtle responsive design problem, with practical takeaways you can apply immediately.
Always a pleasure to read your posts ππ
ishadeed.com/article/too-...
05.02.2026 10:55
π 7
π 1
π¬ 1
π 0
Needed a helper to find the next occurrence of a date (birthdays, holidays, etc.), so I built it.
Now itβs an open @rubyonrails.org.web.brid.gy PR: Date.upcoming_date(month, day) π
Proud to give back to the open-source community that gives us so much β€οΈ
Hope it gets merged π€
t.co/XD0hlDYenB
16.10.2025 11:02
π 0
π 0
π¬ 0
π 0
XPath Playground | DotRuby
Test XPath expressions against HTML snippets.
Just launched a little side tool π
Test XPath expressions against HTML snippets right in the browser.
Built with Rails + Nokogiri, CodeMirror, and Catppuccin β¨
Perfect for experimenting with XPath expressions π§ͺ
π www.dotruby.com/tools/xpath-...
22.09.2025 10:48
π 0
π 0
π¬ 0
π 0
Adding File Validation to Lexxy Editor with Stimulus
A simple Stimulus controller to validate attachments in the Lexxy editor β restricting file types and sizes before they get uploaded.
Inspired by @donnfelker.bsky.socialβs Stimulus controllers for Lexxy, I built one that adds file type and size validation directly in the editor.
Big thanks to @jorgemanru and the @basecamp team π
Full write-up π www.dotruby.com/articles/add...
18.09.2025 08:09
π 0
π 0
π¬ 0
π 0
Need an extra email address but don't want to create a new account?
Most providers support plus addressing β just add +something before the @.
All emails still arrive in your inbox, and you can filter them easily.
Example: bob+needanothermail@gmail.com π¬
26.08.2025 07:26
π 0
π 0
π¬ 0
π 0
Easy Redesign in Rails: Run Old and New Side by Side with :variants
Rails variants are usually used to serve different views for devices β but you can use them for much more, like running a redesign side by side.
Redesigning a Rails app? π
We discovered an underrated feature: :variants.
With just one magic suffix you can run old & new layouts in parallel β no JS, no cookies, just Rails β¨
Full write-up π dotruby.com/articles/eas...
25.08.2025 13:01
π 0
π 0
π¬ 0
π 0
Discovered a neat trick in the turbo_power gem by @marcoroth.dev π‘
turbo_stream.toggle_css_class supports force:, just like the DOM API.
No need for manual logic β may the force: be with you πΈβ¨
14.08.2025 11:04
π 1
π 1
π¬ 0
π 0
HexaPDF gem from @gettalong.bsky.social made it super easy to add PDF form filling to our rails app π
The hardest part? Finding the PDF form field names π€―
We wanted to give back, so we built a tool to list them all:
dotruby.com/tools/hexapd...
Drag a PDF β see all field names β done β
11.08.2025 11:24
π 2
π 0
π¬ 0
π 0
π¨ Rails tip: Appending query params with concat or + "?..." can break your URLs β especially if the URL already includes parameters.
Instead of risking invalid or double ?s, use a proper helper that merges params safely. π
07.08.2025 08:49
π 1
π 0
π¬ 0
π 0
π‘ I needed to check if a string is a valid app path in my Rails app β surprisingly, couldnβt find a built-in way.
So I wrote a small helper method.
Sharing in case it helps someone β or if thereβs a better way? π€π
07.08.2025 08:13
π 0
π 0
π¬ 0
π 0
I remembered today and thought I'd share:
You can use .many? instead of count > 1 β more readable and sometimes faster!
π‘ On relations: uses LIMIT 2
β οΈ On associations: loads all records
31.07.2025 09:51
π 1
π 0
π¬ 0
π 0
Anchor links not scrolling correctly in your Rails app?
Turbo Drive intercepts clicks and replaces page content via fetch (not a full page reload) β and that breaks native #anchor scrolling.
Fix it with data-turbo="false"
Tamed the Turbo β anchor away! β
30.06.2025 16:42
π 0
π 0
π¬ 0
π 0
Just discovered you can add an if after a content_tag block in Rails views β way cleaner than wrapping the whole thing!
Always finding little gems in ERB ππ
26.06.2025 09:41
π 0
π 0
π¬ 0
π 0
Pluralizing model names in Rails with proper i18n β there's a helper for that.
I wrote a small helper that uses model_name.human(count: ...) to do it the right way β fully i18n-ready.
Simple, readable, and it works with any model as long as it's been translated π
05.06.2025 15:01
π 0
π 0
π¬ 0
π 0
π‘ Clean Rails views with conditional wrapping?
Use conditional_tag to wrap content in a tag only if a condition is true.
No more messy if blocks in ERB. Just clean, readable templates.
Discovered this gem thanks to @scarfacedeb π
05.06.2025 14:59
π 1
π 0
π¬ 0
π 0
Nobody likes to pack β not IRL, not on GitHub. π§³
So I built github-repo-manager:
For when you're leaving a GitHub org and want to take all your repos without the manual drag-n-drop drama.
One script. No cardboard boxes. ππΌ
github.com/elalemanyo/g...
21.05.2025 22:02
π 0
π 0
π¬ 0
π 0
GitHub - igorkasyanchuk/get-smart: Learn Ruby/Rails topics during your appβs boot time.
Learn Ruby/Rails topics during your appβs boot time. - igorkasyanchuk/get-smart
π‘ Want your Rails app to teach you something new every time it boots?
Check out get-smart by igorkasyanchuk β it shows handy Ruby & Rails tips during startup.
A clever gem with a thoughtful touch πβ¨
github.com/igorkasyanch...
19.05.2025 12:29
π 2
π 0
π¬ 0
π 0
Release v0.4.0 Β· BaseSecrete/active_hashcash
What's Changed
Prevent from password managers to submit the form before the stamp has been computed
Added support for the "button" submit form tag
Added Catalan language
Added base_controller_clas...
I released version 0.4.0 of active_hashcash. Thanks to @ivanverges.bsky.social and @elalemanyo.bsky.social for their contributions.
ActiveHashcash protects Rails applications against bots and brute force attacks without annoying humans.
github.com/BaseSecrete/...
16.05.2025 09:21
π 5
π 3
π¬ 1
π 0
π‘ Turbo Tip: Preserve search state and update the browser's URL when paginating within a <turbo-frame> by adding data-turbo-action="advance".
This promotes frame navigation to a full page visit, enhancing user experience.
π Learn more:
turbo.hotwired.dev/handbook/fra...
17.04.2025 15:19
π 0
π 0
π¬ 0
π 0
make any ssh server feel like home π‘
add this to your VS Code settings:
"remote.SSH.defaultExtensions"
now it auto-installs your favorite extensions when you connect
no more bare-bones VS Code sessions π«
16.04.2025 13:38
π 0
π 0
π¬ 0
π 0
Need a quick user icon but don't use an icon set?
Just write Do and rotate it 90Β°
Boom π₯ You've got a minimalist one
Genius idea from @lopezcodes.bsky.social π
11.04.2025 10:12
π 1
π 0
π¬ 0
π 0
Screenshot of the following text:
"π All about Code and Ruby
There a lot of code samples included; here are just some of them:
Andy Croll shared his Ruby solution to a Cassidoo coding challenge, using Rails' Active Support for time manipulation to find the longest time gap between a series of times.
Prabin Poudel shared a useful Ruby tip about Array.wrap
Hans Schnedlitz shared a tip about speeding up Rails migrations by using bulk migrations with the bulk: true option in change_table
Ruby Cademy highlighted String#scrub as an underappreciated Ruby method that helps clean up problematic character encodings
Victor Cobos shared a useful technique for detecting newly attached files in Rails with Active Storage, using before_save callbacks
David Heinemeier Hansson shared a code sample from Basecampβs diff feature, unchanged since 2016, highlighting Rubyβs readability and longevity."
Here are just some highlights from All About Code and Ruby section from:
@andycroll.bsky.social @coolprobn.bsky.social @hansschnedlitz.com @RubyCademy @elalemanyo.bsky.social @David Heinemeier Hansson
But there are much more code samples to be inspired and write beautiful #Ruby
07.04.2025 08:44
π 1
π 1
π¬ 1
π 0
Ever forget how @github.com-flavored markdown does callouts?
Same π
Now I just type :note, :tip, :warning, etc. and espanso.org fills it in for me β¨
Thanks terzi_federico for making this possible π
02.04.2025 08:17
π 1
π 0
π¬ 0
π 0
Found a good way to check if a file was newly attached in Rails
For has_one_attached or has_many_attached
Hope this helps someone save time! π
31.03.2025 21:43
π 0
π 0
π¬ 0
π 0
I was getting tired of my logs being flooded with Sass deprecation warnings when compiling bootstrap in my rails app π©
Turns out, you can silence them by just adding this:
--quiet-deps --silence-deprecation=import,global-builtin
No more noise! π
sass-lang.com/documentatio...
18.03.2025 13:46
π 0
π 0
π¬ 0
π 0
π Keeping your JavaScript dependencies up to date is easier than ever!
Just add a simple script to your package.json and update everything with one command.
Check out npm-check-updates β github.com/raineorshine...
17.03.2025 10:01
π 1
π 0
π¬ 0
π 0
Just discovered a neat @vscode.dev setting:
"debug.allowBreakpointsEverywhere": true
Turns out, you can set breakpoints literally anywhere β *.html.erb, *.turbo_stream.erb, you name it. No more βbreakpoints can't be set hereβ nonsense. Feels like cheating, but it works. π
13.03.2025 10:16
π 0
π 0
π¬ 0
π 0
β¨ Conditional form fields with pure HTML & Tailwind!
Want to show/hide fields based on selected option? No JS! Just use group-has-* from Tailwind.
#1: Show input when selected.
#2: Show a different <select> for each option.
π₯ Works great for forms with dynamic inputs!
03.03.2025 16:54
π 0
π 0
π¬ 0
π 0