1

I'm trying to link to the YUI reset stylesheet in my RoR layout using the following statement...

<%= stylesheet_path("http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css") %> 

but this path is being echoed on my page instead of being applied. I got this syntax from the the rails docs. What am I doing wrong?

Thanks!

BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238

2 Answers2

3

Try this

<%= stylesheet_link_tag 'application','http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css' %>
Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
1

Try stylesheet_link_tag as described in the Rails API Docs

zetetic
  • 47,184
  • 10
  • 111
  • 119