Class: Markaby::Rails::RailsBuilder
- Defined in:
- lib/markaby/rails/rails_builder.rb
Direct Known Subclasses
Defined Under Namespace
Classes: FormHelperProxy
Constant Summary
Constants inherited from Builder
Instance Attribute Summary
Attributes inherited from Builder
Instance Method Summary collapse
Methods inherited from Builder
#capture, get, #helper=, ignore_helpers, ignored_helpers, #initialize, #locals=, restore_defaults!, set, #tag!, #text, #to_s
Methods included from BuilderTags
#head, #html_tag, #xhtml_frameset, #xhtml_strict, #xhtml_transitional
Constructor Details
This class inherits a constructor from Markaby::Builder
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Markaby::Builder
Instance Method Details
#form_for(*args, &block) ⇒ Object
4 5 6 7 8 |
# File 'lib/markaby/rails/rails_builder.rb', line 4 def form_for(*args, &block) @template.form_for(*args) do |__form_for_variable| yield(FormHelperProxy.new(self, __form_for_variable)) end end |