Return to Snippet

Revision: 4401
at December 5, 2007 14:02 by brettarogers


Updated Code
def include_javascript( js_file )
  content_for( :javascripts ){ javascript_include_tag js_file }
end
  
def include_stylesheet( css_file )
  content_for( :stylesheets ){ stylesheet_link_tag css_file }
end
  
def add_body_id( id )
  content_for( :body_id ){ id }
end

def heading( page_title )
  content_for( :heading ){ page_title }
end

def class_name
  cycle "odd", "even"
end

Revision: 4400
at December 5, 2007 14:02 by brettarogers


Updated Code
def include_javascript( js_file )
    content_for( :javascripts ){ javascript_include_tag js_file }
  end
  
  def include_stylesheet( css_file )
    content_for( :stylesheets ){ stylesheet_link_tag css_file }
  end
  
  def add_body_id( id )
    content_for( :body_id ){ id }
  end
  
  def heading( page_title )
    content_for( :heading ){ page_title }
  end

  def class_name
    cycle "odd", "even"
  end

Revision: 4399
at December 5, 2007 14:01 by brettarogers


Initial Code
 def include_javascript( js_file )
    content_for( :javascripts ){ javascript_include_tag js_file }
  end
  
  def include_stylesheet( css_file )
    content_for( :stylesheets ){ stylesheet_link_tag css_file }
  end
  
  def add_body_id( id )
    content_for( :body_id ){ id }
  end
  
  def heading( page_title )
    content_for( :heading ){ page_title }
  end

  def class_name
    cycle "odd", "even"
  end

Initial URL

                                

Initial Description

                                

Initial Title
Application Helper Starter

Initial Tags
textmate, rails

Initial Language
Rails