Method: Helperful::AssetTagHelper#stylesheet

Defined in:
lib/helperful/asset_tag_helper.rb

#stylesheet(*files) ⇒ Object

Converts given files in stylesheet link statements and appends them in the head section of the page.

Examples

# in your index.html.erb view
<% stylesheet :foo, :bar, :cache => "foobar" %>

# this is equivalent to
<% content_for :head, stylesheet_link_tag(:foo, :bar, :cache => "foobar") %>

# in your application
<% yield :head %>


100
101
102
# File 'lib/helperful/asset_tag_helper.rb', line 100

def stylesheet(*files)
  content_for(:head, stylesheet_link_tag(*files))
end