/ Published in: Rails
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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
Comments
 Subscribe to comments
                    Subscribe to comments
                
                