I should mention that I am making these functions myself... to use in
a view
Is there something I need to do to get the function working as a model
method in a "do" block?
some more context would be useful - at a basic level you don't need to
anything in particular to do this (eg when you're calling fields_for
on a form builder). You might have used <%= when you should have used <%