ActiveSalesforce and Ruby on Rails > 2.1
We have to do an integration with Saleforce for a Rails project we are working on. I keep getting this error:
The :dependent option expects either :destroy or :delete (:nullify)
I posted to the Salesforce forums and didn't get any response so I did some more investigation. Turns out there is a bug and a patch:
http://rubyforge.org/tracker/index.php?func=detail&aid=19960&group_id=1201&atid=4729
Lucky for me the latest version of Rails has a feature that unpacks all of your gems into your vendor directory. I unpacked activesalesforce, made the code changes by applying the patch (which just removes :dependent => :nullify) and viola.
More from jbasdf
- A copy of ApplicationController has been removed from the module tree but is still active! And can’t dup NilClass
- Rails Conf Intro from Chad Fowler and Some Stuff from the Mountain West Ruby Conference
- Ajax calls using jQuery in Ruby on Rails
- Ruby on Rails Tutorials
- Implicit multipart emails using Ruby on Rails and ActionMailer won’t work
-
Justin Ball
-
Senthil Nayagam
-
Justin Ball
-
Joshua Hoskins
Justin Ball is a software consultant and entrepreneur with a passion for Ruby. He evolved from a C++ and .Net monkey into a python programmer and finally found Ruby. In the rare moments when he isn't writing code, talking about code or measuring his code productivity in profanity per hour, you can find him on his bike in the mountains or on the roads surrounding Cache Valley. 









