I’ve had a weird situation over here at StudioDanger headquarters with plugins going haywire. I had my app working real slick and then installed the new Engines plugin and the slickness continued unabated. A subsequent installation of the simply_helpful plugin gave me a crazy error:
"undefined method 'dom_class'"
There’s this line in
simply_helpful where ActionView::Helpers::FormHelper is monkey-patched to call
dom_id. These should be available because in the plugin’s init.rb we see the SimplyHelpful helper injected into ActionController as a helper
require 'simply_helpful' ActionController::Base.send :include, SimplyHelpful::RecordIdentificationHelper ActionController::Base.helper SimplyHelpful::RecordIdentificationHelper, SimplyHelpful::RecordTagHelper
At some point ‘self’ became an unmodified version of ActionController while
simply_helpful was looking for it’s special helper functions. Why did it to that? I spent three hours trying to figure it out. I have no idea.
You can patch it though. Just change
SimplyHelpful::RecordIdentifier.dom_class. That’ll do the trick.