Dive into the archives.


  • Custom Validation for attachment_fu

    Any time a project I’m working requires uploading a file I turn to a trusty old friend called attachment_fu. The plugin works great, but lacks the necessary validations. It does have a built-in validates_as_attachment, but only prevents files outside of the set range from being uploaded. What if I wanted to validate […]

  • Custom field_error_proc in Ruby on Rails

    I was recently working a project that required pixel perfect CSS so Ruby on Rail’s packaged field_error_proc just wouldn’t cut it. If you’ve ever written a scaffold with validations you’re familiar with what I’m talking about. The injection of the field_with_errors div wrapped around the offending field. I needed to highlight the […]

Ruby on Rails

This is the archive for Ruby on Rails.

FRESH / LATEST POSTS

Blues vs PenguinsBlues vs PenguinsBlues vs PenguinsBlues vs PenguinsBlues vs PenguinsBlues vs PenguinsBlues vs PenguinsBlues vs Penguins

Online

AIM : Offline

Powered by IM Online