I have the following code:
3.times do |n|
"project#{n}" = FactoryGirl.create(:project, :title => "Project #{n}")
end
That obviously doesn't work... Does anyone know how to make loop where I can make variable name that will change with 'local loop variable' to make a lot of variables like project1, project2, projekt3?