Module: Interview::NestedBuildable
- Included in:
- Form, Link, NestedForm, SearchForm
- Defined in:
- lib/interview/nested_buildable.rb
Instance Method Summary collapse
Instance Method Details
#create_nested_builder(b) ⇒ Object
| 4 5 6 7 8 9 | # File 'lib/interview/nested_buildable.rb', line 4 def create_nested_builder(b) @original_html = b.html @nested_html = ::Builder::XmlMarkup.new b.html = @nested_html return b end | 
#render_nested_builder(b) ⇒ Object
| 11 12 13 14 | # File 'lib/interview/nested_buildable.rb', line 11 def render_nested_builder(b) b.html = @original_html return @nested_html.target!.html_safe end |