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 -- Posted via http://www.ruby-forum.com/.
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 -- Posted via http://www.ruby-forum.com/.
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 -- Jonathan Weiss http://blog.innerewut.de
Seemingly Similar Threads
- complete stumper: variable exists in hidden_field_tag, but nil everywhere else
- hidden_field_tag flattens my array for value
- [PATCH] Adding the ability to select a Host to start a VM
- form_remote_tag :onsubmit not working.
- form_remote_tag : additional onsubmit funct. possible ?