spectator/attr_encrypted — Issue #2: Broken in Rails 2.3.8 + Bundler
Author: DerNalia
Created: 2012-02-14 19:12:48+00:00
State: open

It works without bundler on a different machine, but my setup only works with bundler + RVM setups.

What's Happening?: Whenever I try to save an encrypted attribute via the Web UI, it doesn't save to the database. (All params are successfully sent to the controller)

I do "ap params" (ap is awesome_print) before and after the save (and everything I entered in the form is there), and store the result of the method update_attributes to a variable -- whose value is true... so rails thinks the save was successful... but when I look at the database all the attr_encrypted fields are still blank. No errors or anything, on the web side or the server side. Rails thinks everything is working as intended.

I'm using:
ruby 1.8.7
rails 2.3.8
bundler 1.0.21
spectator-attr_encrypted from a fork: https://github.com/DerNalia/attr_encrypted (so I could install the gem from the gemfile)

This is how attr_encrypted is in the gemfile:
gem "spectator-attr_encrypted", :git => "git://github.com/DerNalia/attr_encrypted.git", :require => "attr_encrypted"

I compiled the gem with jeweler -- with the command "jeweler install"