Javascript_include_tag

Hello Rubyians,

I have some javascript files inside deep nested directories. So, to
include them all: i am doing like <%= javascript_include_tag :all,
:recursive => true %>. But at the same time, i do not want one file (say
abc.js) to be included into the page.

So, do we have any option/parameter to it which can help me out? Or may
be you guys can suggest me some easy way to do it instead of fetching
file one by one.

Thanks a lot in advance.

  • Hemant B.

I haven’t tried this one, but sounds closer to what you are looking for:

http://stackoverflow.com/questions/4596301/can-rails-javascript-include-tag-ignore-previously-loaded-scripts

Regards,


Edmond
*Systems Developer | Blantyre | Malawi

*“If everything in Ruby is an object, so who is the subject?” –
self.author

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