views:

11

answers:

0

I'm trying to figure out the best way to include the following in my head in rails 3:

<!--[if IE]><script language="javascript" type="text/javascript" src="/javascripts/excanvas.min.js"></script><![endif]--> 

As you can see, I just want that javascript file availabe to IE... so perhaps I shouldn't do it this way at all... I'm open to suggestions.

I'm using this to specify the default javascript files for inclusion:

config.action_view.javascript_expansions[:defaults] = %w(jquery rails jquery-ui jquery.flot)

Is there anyway I can specify this excanvas.js in the defaults only if the user is using IE?

What's the best way to do that?

Thanks!