tbuser's acts_as_pradipta at master - GitHub
What Pradipta Archiputra (aka "MAX ARCHIE") uses to send his recruitment emails. This plugin pretends that CC and BCC
Railscasts - Embedded Association
Learn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask.
sinsiliux's Blueprints at master - GitHub
Another replacement for factories and fixtures that focuses on being DRY and making developers type as little as possible.
acunote's template_inliner at master - GitHub
Template inliner avoids the problem when to render a large list of objects,
CSS Rant -- 5 tips for rails developer sanity - Momoro Machine
Fuck acronyms, really
cwninja's inaction_mailer at master - GitHub
An ActionMailer delivery method to save mails as files in a directory.
cwninja's popthis at master - GitHub
So you downloaded inaction_mailer, and you had a folder full of e-mails generated while writing your app?
elevation's event_calendar at master - GitHub
Easily show multiple, overlapping events across calendar days and rows.
pjdavis's identity-map at master - GitHub
A simple implementation of an Identity Mapper for Active Record.
How to split a Ruby class into multiple source files - Gem Session
Unfortunately vanilla Ruby modules lack support for many idioms popular in modern Ruby. Most importantly, we have become accustomed to composing our classes with meta-programming macros such as has_many, validates_presence_of or after_save. And modules weren't built with macros in mind.
datagraph's rack-throttle at master - GitHub
Rack middleware for rate-limiting incoming HTTP requests.
jnicklas's carrierwave at master - GitHub
File uploads survive validation errors, letting forms round-trip without losing the selected file and reducing re-upload friction.
Handy! RGB to HSL and RGB to HSV color model conversion algorithms in JavaScript - Axon Flux // A Ruby on Rails Blog
Here is a set of additive color model conversion algorithms that I found published on Wikipedia and have implemented in JavaScript.
Sailing down the Hudson with RVM - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
We recently decided our CI server needed an overhaul. I really enjoyed Integrity as a build server, but after trying out Hudson it’s hard to say I want to go back. Hudson has several huge advantages.
Ultimate rspec matcher to test named_scope or scoped - Web development blog
What do we expect from the custom finder? We expect that it should find assets A, B, C and should not find assets D, E, F. And sometimes the order is important: it should find A, B C with exact order.
Insertion/Deletion callbacks
All ActiveRecord associations except for has_many :through support callbacks for pre- and post-insertion/deletion via the following, self-documenting parameters:
Git: Restore
git restore reverses staged, unstaged, deleted, or conflicted changes with clearer intent than git checkout, and can restore files from other revisions.
Ruby: How to use prepend for cleaner monkey patches
prepend makes Ruby monkey patches cleaner by inserting an extension before the original implementation, so super still reaches it and ancestor chains stay readable.
RSpec: automatic creation of VCR cassettes
RSpec examples tagged :vcr automatically record and replay HTTP cassettes, while untagged specs block network calls unless HTTP access is explicitly enabled.
Make your Rails console (and irb) output better readable
Colorized, structured output in Rails console and irb makes long strings, objects, and classes easier to inspect. awesome_print adds the ap command for readable formatting.
Building web applications: Beyond the happy path
Web apps fail on devices, browsers, slow networks, large data, and printing when responsive design, loading states, image handling, and metadata are neglected.
Disable SimpleCov if you only run a fraction of your tests
Coverage reports add noise when only a small subset of tests runs; skipping SimpleCov for partial runs keeps output cleaner.