I have database with following fields: id, q_id, text, session etc. and I have already 2 records there. I want to hash each line with SHA1 alghoritm (every line is unique of course). I tried this:
@w = Digest::SHA1.hexdigest(id+q_id+text+session)
but it doesn't work.