Overring hidden_field_tag?


#1

Hi, I wonder how to override some tag generators, for example the
hidden_field_tag function.

By the way, I would be interested to learn how to extend
ActionView::Base so new functions would be available to all my views
(functions that need _erbout access, so a simple helper doesn’t…help)

Thanks


#2

Nuno wrote:

Hi, I wonder how to override some tag generators, for example the
hidden_field_tag function.

By the way, I would be interested to learn how to extend
ActionView::Base so new functions would be available to all my views
(functions that need _erbout access, so a simple helper doesn’t…help)

Anybody can help ?

Thank you


#3

Nuno wrote:

Hi, I wonder how to override some tag generators, for example the
hidden_field_tag function.

AFAIK just do a

def method_to_override

end

in application_helper.rb

By the way, I would be interested to learn how to extend
ActionView::Base so new functions would be available to all my views
(functions that need _erbout access, so a simple helper doesn’t…help)

Look in the wiki for help on developing your own plugin or look into
some existing ones.

Thanks

Jonathan