Pål Bergström wrote:

> def crypt_data
>      self.name = Crypto.encrypt(self.name,key)
> end
>
> def decrypt_data
>      self.name = Crypto.decrypt(self.name,key)
> end

Are you sure you don't mean @name?  This is Ruby, not Python, so self
would generally refer to the class or module, not the object.

-Dave

-- 
Specialization is for insects. -RAH  | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog:  http://dare2xl.com | Play: http://davearonson.net
* * * * * WATCH THIS SPACE * * * * * | Ruby: http://mars.groupsite.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to