Rails-based website for local business
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
module ApplicationHelper def page_title default = 'Air-one Services' @title.nil? ? default : @title end def page_description default = 'Quality commercial, residential, and industrial '+ 'HVAC, electrical and plumbing services since 1965' @description.nil? ? default : @description end def stylesheet_links default = %w{reset grids layout} styles = @stylesheets.nil? ? default : @stylesheets html = styles.collect do |style| "<link rel='stylesheet' media='screen' href='stylesheets/#{style}.css' />" end html.join("\n") end end
|