Ruby on Rails Tuesday, February 18, 2014


On Tue, Feb 18, 2014 at 11:58 PM, Farsheed Bamboat <lists@ruby-forum.com> wrote:
<% content_for :head do %>
  <link rel="stylesheet" type="text/css"
href="/stylesheets/ammos_new.css">
<% end %>

You should use the <%= stylesheet_link_tag 'filename' %> instead of including the <link tag directly. Rails will generate the stylesheet html for you

Thanks,
Ganesh

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoHZHrg2awsqOvgCE6gMHvLeWnbr1%2BKkFX0s7saWWyCQQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment