Methods

Files

Markaby::Rails::RailsBuilder

Public Instance Methods

form_for(*args, &block) click to toggle source
    # File lib/markaby/rails/rails_builder.rb, line 4
 4:       def form_for(*args, &block)
 5:         @_helper.output_buffer = OutputBuffer.new
 6: 
 7:         @template.form_for(*args) do |__form_for_variable|
 8:           # flush <form tags> + switch back to markaby
 9:           text(@_helper.output_buffer)
10:           @_helper.output_buffer = self
11: 
12:           yield FormHelperProxy.new(@_helper, __form_for_variable)
13: 
14:           # switch back to output string output buffer and flush
15:           # final </form> tag
16:           @_helper.output_buffer = OutputBuffer.new
17:         end
18:         text(@_helper.output_buffer)
19: 
20:         # finally, switch back to our regular buffer
21:         @_helper.output_buffer = self
22:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.