Skip to content
darrenterhune edited this page Sep 28, 2011 · 5 revisions

A list Address helpers you can use. Try it out!

irb
require 'rubygems'
require 'faker'

Faker::Address

Faker::Address.city
 => "Laishaville"

Faker::Address.street_name
 => "Eliseo Prairie"

Faker::Address.street_address
 => "5182 Carroll Springs"

Faker::Address.secondary_address
 => "Suite 700"

Faker::Address.zip_code
 => "37820-2460"

Faker::Address.zip
 => "48961"

Faker::Address.postcode
 => "77498-6303"

Faker::Address.street_suffix
 => "Cape"

Faker::Address.city_suffix
 => "port"

Faker::Address.city_prefix
 => "Port"

Faker::Address.state_abbr
 => "AR"

Faker::Address.state
 => "Louisiana"
Clone this wiki locally