# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html <% User.public_class_method :encrypt SALT = "abc" %> john: login: john hashed_password: <%= User.encrypt("hello",SALT) %> salt: <%= SALT %> mary: login: mary hashed_password: <%= User.encrypt("goodbye",SALT) %> salt: <%= SALT %> roles: admin