search for: custom_help

Displaying 1 result from an estimated 1 matches for "custom_help".

Did you mean: custom_beep
2006 Feb 01
4
Custom view helpers
Hi all, I would like to write some custom helpers like the ones available as form helpers text_field, text_area and the like. My first try was this: custom_helper(obj, meth) ''some_string'' + obj.send(meth) + ''some_other_string'' end Object and method are being passed as symbols like this: custom_helper(:person, :name) and Ruby rightfully complains that the symbol person does not have a method named name. Second try...