Boring Rails
Tiny Tips
Articles
Tiny Tips tagged with:
ruby
Tips about Ruby on Rails, StimulusJS, Tailwind, Hotwire, and building products
Filter by
ruby
rails
product
testing
Pluck single values out of ActiveRecord models or Enumerables
Never mix up greater/less than when comparing dates again
Super readable String operations with `delete_prefix` and `delete_suffix`
Setting CSS classes in Markdown with Jekyll / Bridgetown
Ensure required environment variables are set when booting up Rails
Search and debug gems with `bundle open`
Automatically cast params with the Rails Attributes API
Show relevant chunks of text with Rails `excerpt` helper
Use Rails `link_to_unless_current` for navigation links
Use Rails `cycle` to avoid `i % 2 == 0` in your view loops
Use the Rails helper `highlight` when showing search results