Forum: Ruby on Rails <!--[if IE]>....?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
93d2b6696403e856cdbb7266223126dd?d=identicon&s=25 Ro Vent (rvent)
on 2007-01-25 22:08
Hello again.. I ve been looking all over to see if there is any way to
have the <!--[if IE]> thingy working without having to go to every page
and add it manually...?

so far my layout has:
  <!--[if IE]><%= stylesheet_link_tag 'ie-style' %><![endif]-->
  <%= stylesheet_link_tag 'scaffold' %>

And it didnt work.... :(

Any ideas on how to get this done...? Any links...?

4858ffb014831b3741753920314adc90?d=identicon&s=25 Matt Jones (Guest)
on 2007-01-25 23:36
(Received via mailing list)
On 1/25/07, Ro Vent <> wrote:
You probably want the 'if IE' thing after the scaffold stylesheet, so
IE will end up with the correct styles. Try that out..

You're also missing the space before the '>' at the beginning, and
before the
'-->' at the end. I vaguely recall that some browsers look for the '
-->' string to
end a comment vs just '-->' (no space before).

Matt Jones
President/Technical Director, Acme Art Company (
This topic is locked and can not be replied to.