Things you might not know about Ruby on Rails
I have been digging around the Rails source a lot since the last time I shared my discoveries. Seeing how popular the post was, I have collected a…
I have been digging around the Rails source a lot since the last time I shared my discoveries. Seeing how popular the post was, I have collected a…
Not too long ago we had a problem with doing (almost) guaranteed inserts for columns with unique constraints on them (see this post). Today I was facing a…
Actually this post is not so much about just building custom validators for Rails 3 but more like a in-depth introduction to how validations work in the old…
Generally, when someone wants to ensure that a models field is unique, they use a database unique index in conjunction with validates_uniqueness_of :field. The problem with this approach…
Some neat tips and discoveries from the Ruby on Rails source, shared by Tanel Suurhans.
Recently I ran into a case where I had two separate “acts_as” style ActiveRecord model extensions which both abused respond_to? and method_missing to dynamically provide virtual attribute support.…
You probably have used, or at least seen, ActionController::Filters used in lots of Ruby on Rails based applications. Usually it’s related to some authentication/authorization, or benchmarking or something…
Few days ago I was talking with a friend of mine about different approaches in software development. One of the thoughts that we discussed for quite a while…
So you have finished building your Rails application, done some polishing and suddenly you notice that something went horribly wrong in production and you get the well-known default…
Last week, while trying to find some fancy recipes and snippets for Capistrano, I had an idea to use Growl for deployment notifications to let everyone important know…