Suppress/Override application.html.erb

Posted by user310628 on Stack Overflow See other posts from Stack Overflow or by user310628
Published on 2010-04-18T01:44:07Z Indexed on 2010/04/18 1:53 UTC
Read the original article Hit count: 402

Filed under:
|

Is there any way to suppress the default js and css loaded by application.html.erb on a view by view basis? I'm finding it incredibly difficult to manage a global css and js includes configuration when certain views need different js libraries that for some reason seem to be conflicting with one another. For example, I might want jquery 1.3 for one view and 1.4.2 for another. I don't necessarily want to have to have an include for every view (I do want to have a global site-wide default), but I would also like to be able to override those for any view I want. Thanks!

© Stack Overflow or respective owner

Related posts about ruby

Related posts about jQuery