I have a project that has some html code repeated in a few places and
would like to consolidate this to reduce some duplication. I tried
creating a helper method that would just print out all of the code but
it never seems to work when calling it from the rhtml page.
The other option that seemed likely would be to include a file, but I
wasnt sure how well it would work considering there are a few formulas
and calls in ruby included in this code.
Cheers,
Mic