# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html <% User.public_class_method :encrypt salt = "abc" %> john: login: john full_name: john hashed_password: <%= User.encrypt("hello",salt) %> salt: <%= salt %> mary: login: mary full_name: mary hashed_password: <%= User.encrypt("goodbye",salt) %> salt: <%= salt %> roles: admin james: login: james full_name: James hashed_password: <%= User.encrypt("morning",salt) %> salt: <%= salt %> contests: contest_a jack: login: jack full_name: Jack hashed_password: <%= User.encrypt("morning",salt) %> salt: <%= salt %> contests: contest_a, contest_b