Displaying 1 result from an estimated 1 matches for "bmevent".
Did you mean:
mevent
2009 Jan 26
2
Cannot extend class in Application Helper
Looking for some help with extending existing classes.
In a view I have <td><%=h bmevent.node %></td>. I need further
processing on the output and added a helper:
module ApplicationHelper
class String
def a
self[ /^[^\0]*/ ]
end
end
end
and <td><%=h bmevent.node.a %></td> results in an undefined method `a''
for #<String:0xb6c8105c> err...