Class: Wee::Nitro::FormTag
- Inherits:
-
Brush::FormTag
- Object
- Brush
- Brush::GenericTagBrush
- Brush::FormTag
- Wee::Nitro::FormTag
- Defined in:
- lib/wee/adaptors/nitro.rb
Instance Attribute Summary
Attributes inherited from Brush
Instance Method Summary collapse
Methods inherited from Brush::FormTag
Methods inherited from Brush::GenericTagBrush
#__action_callback, #__actionurl_callback, #__actionurl_named_callback, #__input_callback, #css_class, #css_class_for, #initialize, #method_missing, #onclick_callback, #onclick_update
Methods inherited from Brush
Constructor Details
This class inherits a constructor from Wee::Brush::FormTag
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wee::Brush::GenericTagBrush
Instance Method Details
#with(*args, &block) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/wee/adaptors/nitro.rb', line 35 def with(*args, &block) rctx = @canvas.rendering_context super(*args) do block.call if block @canvas.hidden_input.name('__c').value(rctx.component_name) @canvas.hidden_input.name('__a').value(rctx.redirect_action) if rctx.redirect_action end end |