问题
I have the following code, which I use to customize form_for. I need to inherit ActionView::Helpers::InstanceTag
class InstanceTag < ActionView::Helpers::InstanceTag
I get exception after the upgrade to Rails 4 and I saw that in the docs there is no such class. What is the best class to use instead of it?
回答1:
After some research. I found that
ActionView::Helpers::InstanceTag
is transformed into module called ActiveModelInstanceTag
ActionView::Helpers::ActiveModelInstanceTag
来源:https://stackoverflow.com/questions/18409891/uninitialized-constant-actionviewhelpersinstancetag-in-rails-4