Skip to content

Instantly share code, notes, and snippets.

@miketierney
Created February 8, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketierney/4740879 to your computer and use it in GitHub Desktop.
Save miketierney/4740879 to your computer and use it in GitHub Desktop.
<% 10.times do |i| %>
<%
# Define these first, since they're being used in the key
first_name = Faker::Name.first_name
last_name = Faker::Name.last_name
%>
"<%= first_name %>_<%= last_name %>":
id: <%= i + 100 %>
first_name: <%= first_name %>
last_name: <%= last_name %>
created_at: <%= Time.at(rand * (Time.now.to_f - 0.0)) # random time stamp %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment