Sha256: a425f8fee47eb6d47537a37f8bc8fe32e9f2106e4cbb377371558efe6c21cd36

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

module ApplicationHelper

  def title
    base_title = "Ruby on Rails Tutorial Sample App"
    if @title.nil?
      base_title
    else
      "#{base_title} | #{@title}"
    end
  end

  def logo
    image_tag("logo.png", :alt => "Sample App", :class => "round")
  end
  
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tft_rails_dbc-0.1.3 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails_dbc-0.1.1 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails_dbc-0.1 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails-0.6.2 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails-0.6.1 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails-0.6.0 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb
tft_rails-0.5.1 lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb