how to convert this on rails <!--[if lt IE 7]> <script type="text/javascript" src="example.js"></script> <![endif]--> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 2, 10:54 am, Johny ben <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> how to convert this on rails > > <!--[if lt IE 7]> > <script type="text/javascript" src="example.js"></script> > <![endif]-->There''s nothing to convert - that''s just pure html. Fred> -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On Apr 2, 10:54�am, Johny ben <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> how to convert this on rails >> >> <!--[if lt IE 7]> >> <script type="text/javascript" src="example.js"></script> >> <![endif]--> > > There''s nothing to convert - that''s just pure html. > > Fredwhat I understand to add a external javascript link on rails are to add like this <%= javascript_include_tag :javascriptfilename %> although this link work on rails. <!--[if lt IE 7]> <script type="text/javascript" src="example.js"></script> <![endif]--> I want to know if this html link have equivalent on rails. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2 Apr 2009, at 11:36, Johny ben wrote:> <%= javascript_include_tag :javascriptfilename %> > although this link work on rails. > <!--[if lt IE 7]> > <script type="text/javascript" src="example.js"></script> > <![endif]-->You can still wrap an asset helper in the conditional comment: <!--[if lt IE 7]> <%=javascript_include_tag "example"%> <![endif]--> -Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---