1
2
3
4
class Newalert 

def new_alert_validations(params)
...

Ruby model validations

by DG, June 17, 2008 05:51, 4 refactorings, tagged with model, validations

Following is the big(easy t...

51224bdd17878b3b19e8987e9bb336a2 Talk
1
2
3
class Race < ActiveRecord::Base
  
...

Ruby Help generating abbreviatio...

by Michael Filbin, April 06, 2008 16:16, 2 refactorings, tagged with abbreviation, string, model, attribute

Hi all,

I am attempting ...

14b8667b3bdf64068647b96c26001e0d Talk
1
2
3
4
class FormMailer < ActionMailer::Base

  def contact_us(params)
...

Ruby Action Mailer - It has to b...

by phill, March 01, 2008 19:19, 3 refactorings, tagged with ActionMailer, model, dry form

Here is a FormMailer that I...

B4cf145acfab95d0a6926b988f93b4b8 Talk
1
2
3
4
def which_class?
  if self.language == "C/C++"
     self.language = "sh_cpp"
...

Ruby class picker

by Garrett, December 10, 2007 00:04, 8 refactorings, tagged with ruby, rails, activerecord, model

language is a column in a c...

E9674d02c33d1d711a462026f40bbaf4 Talk