Sha256: 838f8f600b7b46378e630891e92bca81437a02610454c0d141f63bd0581c3c45

Contents?: true

Size: 675 Bytes

Versions: 71

Compression:

Stored size: 675 Bytes

Contents

class ApplicationController < ActionController::Base
  def navbar_partial(partial = nil)
    @partial_navbar = partial if partial 
    return @partial_navbar if defined? @partial_navbar
    @partial_navbar = 'layouts/navbar'
  end
  helper_method :navbar_partial

  def head_partial(partial = nil)
    @partial_head = partial if partial 
    return @partial_head if defined? @partial_head
    @partial_head = 'layouts/head'
  end
  helper_method :head_partial

  def footer_partial(partial = nil)
    @partial_footer = partial if partial 
    return @partial_footer if defined? @partial_footer
    @partial_footer = 'layouts/footer'
  end
  helper_method :footer_partial
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.5 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.4 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.3 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.2 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.1 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.3.0 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.43 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.42 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.41 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.40 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.39 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.38 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.37 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.36 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.35 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.34 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.33 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.32 after_templates/printspeak_bak/application_controller.rb
rails_app_generator-0.2.31 after_templates/printspeak_bak/application_controller.rb