Mohan sai Krishna
Mohan sai Krishna

Reputation: 81

Rails 3.2 to 5 upgrade

ActionView::Helpers::InstanceTag.new is not accepting the arguments what would be the alternate for this From rails3.2 to 5

ActionView::Helpers::InstanceTag.new(arg1,arg2,arg3)

This pops out an error

ActionView::Template::Error (wrong number of arguments (given 3, expected 0))

Upvotes: 1

Views: 98

Answers (1)

nathanvda
nathanvda

Reputation: 50057

The class was deprecated/renamed in the upgrade to rails 4. The class ActionView::Helpers::InstanceTag is transformed into module called ActiveModelInstanceTag. Full qualifier:

ActionView::Helpers::ActiveModelInstanceTag

Source: Uninitialized constant ActionView::Helpers::InstanceTag in Rails 4

Upvotes: 3

Related Questions