Update method of validating erb to handle new way block handler returns with Rails 3