SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Rails + CSS

  1. #1
    SitePoint Zealot
    Join Date
    May 2005
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rails + CSS

    In the public folder there is a stylesheet folder.

    How can i link to this style sheet from a view?

  2. #2
    SitePoint Member
    Join Date
    Apr 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just use the following:

    Code:
    <%= stylesheet_link_tag 'stylesheetname' %>
    This will call stylesheetname.css, just add this in your layout above the head like you would normally when inserting a CSS link.

  3. #3
    SitePoint Zealot
    Join Date
    May 2005
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •