Topic: images

i am working on spec/factories.rb and i am loading fake data for all my models but one of them require a image
how would i do this

FactoryGirl.define do
  factory :profile do
   first_name Faker::Name.first_name
    last_name Faker::Name.last_name  
    image ""

Re: images

What i did was

image "profile.jpg"

but you can do

image Faker::Name.first_name + ".jpg"

you are right how to get the image to display if it does not exist. that is why you just hard code the image name "profile.jpg"