method
set_header_section
set_header_section(body, view)
public
Hide source
# File railties/guides/rails_guides/generator.rb, line 64 def set_header_section(body, view) new_body = body.gsub(/(.*?)endprologue\./m, '').strip header = $1 header =~ /h2\.(.*)/ page_title = $1.strip header = textile(header) view.content_for(:page_title) { page_title } view.content_for(:header_section) { header } new_body end


