Include once in partial

Hi!

I have to include javascript code into my partial but I should do it
once. How can I do that?
What is the rule of thumb?

Gábor

On Thu, 2006-03-16 at 17:19 +0100, Gábor Sebestyén wrote:

Hi!

I have to include javascript code into my partial but I should do it
once. How can I do that?
What is the rule of thumb?


you would put it into whichever file has the

code which is generally the ‘layout’ file for the controller.

Craig

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs