Flowdock
method

set_header_section

Importance_0
set_header_section(body, view) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/guides/rails_guides/generator.rb, line 155
    def set_header_section(body, view)
      new_body = body.gsub(/(.*?)endprologue\./, '').strip
      header = $1

      header =~ /h2\.(.*)/
      page_title = "Ruby on Rails Guides: #{$1.strip}"

      header = textile(header)

      view.content_for(:page_title) { page_title.html_safe }
      view.content_for(:header_section) { header.html_safe }
      new_body
    end
Register or log in to add new notes.