Overring hidden_field_tag?

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs