Tag Archives: Rails

Huge Dropbox Cache File

Recently, I noticed that my hard drive usage had suddenly doubled. Using OmniDiskSweeper as a tool to quickly visualize my folder and file sizes, I discovered that my Dropbox cache file (in /Users/<username>/.dropbox/cache) had grown to 26GB!  There seem to be some issues with cache management in Dropbox, but my usage also probably didn’t fit [...]
Posted in Computing, Rails | Also tagged , | Comments closed

Changing the Rails field_error_proc on a per-controller or per-action basis

So we know we can change how rails displays errors in forms with fields that fail validation. I came across a reason to need to change the ActionView::Base.field_error_proc temporarily, and then set it back… sort of like having different values for the field_error_proc in different places. I came across this post that basically [...]
Posted in Home | Also tagged | Comments closed

Using ActionMailer with SMTP in a development environment

I just ran in to a problem where I wanted to use SMTP delivery for an ActionMailer mail in a Rails app running on my local development machine. When I sent the email, it seemed to send with no problems (no errors raised) but it didn’t get delivered and I couldn’t find it. [...]
Posted in Home | Tagged | Comments closed