On Wed, Feb 11, 2009 at 11:27 PM, Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::. <[email protected]> wrote: > > El Thursday 12 February 2009 02:12:48 rvhi escribió: >> Hi, >> >> Is there a way to make a system wide change to have all boolean >> columns using check_box? I can change each column's form_ui to >> check_box. But that's a lot of work and has to be done on each boolean >> column. >> >> I may change it in helpers/form_column_helpers.rb, but doubt that's a >> good idea. Any override? > > You can override in a helper included in all controllers, such as > ApplicationHelper, active_scaffold_input_boolean, for example: > alias_method :active_scaffold_input_boolean, :active_scaffold_input_checkbox >
I can't get alias_method working. Undefined method error... I just def active_scaffold_input_boolean. It is not too bad... only 1 line of code. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
