Topic: Error with ActiveRecord and Unit Test

Here's my  Model

[code=]class Bairro < ActiveRecord::Base
  validates_presence_of :nome
  validates_uniqueness_of :nome
  before_save :muda_case

  private 
  def muda_case
    str = self.nome.downcase
    str.gsub!(/[

Last edited by arthurgeek (2007-05-24 09:22:24)