What’s the best way to include a javascript from a partial - but make
sure that it is only included once?
I tried doing this with ‘set’ and helpers, but they seem to get
processed after the layout is called.
What’s the best way to include a javascript from a partial - but make
sure that it is only included once?
I tried doing this with ‘set’ and helpers, but they seem to get
processed after the layout is called.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs