Taylor, Ezra,
Thanks for your help. I feel like I’m really close and must have one
small typo/misunderstanding. I’ve tried !omap and this is the error I
receive:
rake aborted!
a YAML error occured parsing test/fixtures/users.yml. Please note that
YAML
must
be consistently indented using spaces. Tabs are not allowed. Please
have a
look
at YAML Ain't Markup Language
The exact error was:
YAML::Error: Invalid !omap: {“-nikki”=>{“salt”=>245481,
“hashed_password”=>426
065, “username”=>“nikki”, “screen_name”=>“nikki”, “email_address”=>"
nikki@gmail.
com"}, “-honemaster”=>{“salt”=>24598, “hashed_password”=>814677,
“username”=>“ho
nemaster”, “screen_name”=>“honemaster”, “email_address”=>"
[email protected]"}
, “-hansgouer”=>{“salt”=>631182, “hashed_password”=>328485,
“username”=>“hansgou
er”, “screen_name”=>“hansgouer”,
“email_address”=>“[email protected]”},
“-kilt
erman”=>{“salt”=>948687, “hashed_password”=>287631,
“username”=>“kilterman”,
“sc
reen_name”=>“kilterman”, “email_address”=>“[email protected]”},
“-zenman”=>{“s
alt”=>194883, “hashed_password”=>736319, “username”=>“zenman”,
“screen_name”=>“z
enman”, “email_address”=>“[email protected]”},
“-rawfingers”=>{“salt”=>342450, “h
ashed_password”=>855412, “username”=>“rawfingers”,
“screen_name”=>“rawfingers”,
“email_address”=>“[email protected]”}, “-herro”=>{“salt”=>976814,
“hashed_pas
sword”=>158429, “username”=>“herro”, “screen_name”=>“herro”,
“email_address”=>“h
[email protected]”}, “-gymrat”=>{“salt”=>981951, “hashed_password”=>987702,
“userna
me”=>“gymrat”, “screen_name”=>“gymrat”,
“email_address”=>“[email protected]”},
“-
roo”=>{“salt”=>878098, “hashed_password”=>843882, “username”=>“roo”,
“screen_nam
e”=>“roo”, “email_address”=>“[email protected]”},
“-dresserlan”=>{“salt”=>832618, “h
ashed_password”=>22106, “username”=>“dresserlan”,
“screen_name”=>“dresserlan”, "
email_address"=>“[email protected]”}, “-nickta”=>{“salt”=>256946,
“hashed_pas
sword”=>29039, “username”=>“nickta”, “screen_name”=>“nickta”,
“email_address”=>"
[email protected]"}, “-jason”=>{“salt”=>541275,
“hashed_password”=>141391,
“usern
ame”=>“jason”, “screen_name”=>“jason”,
“email_address”=>“[email protected]”},
“-be
autygirl”=>{“salt”=>554156, “hashed_password”=>57327,
“username”=>“beautygirl”,
“screen_name”=>“beautygirl”, “email_address”=>“[email protected]”}}
Here is my fixture… am I missing something???
<%
screen_names = [
‘nickta’, ‘herro’, ‘hansgouer’, ‘kilterman’, ‘zenman’,
‘honemaster’,
‘rawfingers’, ‘gymrat’, ‘beautygirl’, ‘nikki’, ‘jason’, ‘roo’,
‘dresserlan’
]
%>
— !omap
<% screen_names.each do |name| %>
-<%= name %>:
username: <%= name %>
hashed_password: <%= rand(1000000) %>
salt: <%= rand(1000000) %>
screen_name: <%= name %>
email_address: <%= name %>@gmail.com
<% end %>
Thanks,
Zack