# 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