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.

19 lines
596 B

  1. module ApplicationHelper
  2. def page_title
  3. default = 'Air-one Services'
  4. @title.nil? ? default : @title
  5. end
  6. def page_description
  7. default = 'Quality commercial, residential, and industrial '+
  8. 'HVAC, electrical and plumbing services since 1965'
  9. @description.nil? ? default : @description
  10. end
  11. def stylesheet_links
  12. default = %w{reset grids layout}
  13. styles = @stylesheets.nil? ? default : @stylesheets
  14. html = styles.collect do |style|
  15. "<link rel='stylesheet' media='screen' href='stylesheets/#{style}.css' />"
  16. end
  17. html.join("\n")
  18. end
  19. end