have you thought of using a partial?
Mike
On 9/15/06, Mic
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---