class Rspec::Generators::ScaffoldGenerator

def value_for(attribute)

def value_for(attribute)
  case attribute.type
  when :string
    "#{attribute.name.titleize}".inspect
  else
    attribute.default.inspect
  end
end