Class: Primer::Forms::Builder
- Inherits:
 - 
      ActionView::Helpers::FormBuilder
      
        
- Object
 - ActionView::Helpers::FormBuilder
 - Primer::Forms::Builder
 
 
- Defined in:
 - lib/primer/forms/builder.rb
 
Overview
:nodoc:
Instance Method Summary collapse
- #check_box(method, options = {}, checked_value = 1, unchecked_value = 0, &block) ⇒ Object
 - #label(method, text = nil, **options, &block) ⇒ Object
 - #radio_button(*args, **options, &block) ⇒ Object
 - #select(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object
 - #text_area(*args, **options, &block) ⇒ Object
 - #text_field(*args, **options, &block) ⇒ Object
 
Instance Method Details
#check_box(method, options = {}, checked_value = 1, unchecked_value = 0, &block) ⇒ Object
      38 39 40 41 42 43 44 45 46  | 
    
      # File 'lib/primer/forms/builder.rb', line 38 def check_box(method, = {}, checked_value = 1, unchecked_value = 0, &block) super( method, classify().merge(generate_error_markup: false), checked_value, unchecked_value, &block ) end  | 
  
#label(method, text = nil, **options, &block) ⇒ Object
      34 35 36  | 
    
      # File 'lib/primer/forms/builder.rb', line 34 def label(method, text = nil, **, &block) super(method, text, classify().merge(generate_error_markup: false), &block) end  | 
  
#radio_button(*args, **options, &block) ⇒ Object
      48 49 50  | 
    
      # File 'lib/primer/forms/builder.rb', line 48 def (*args, **, &block) super(*args, classify().merge(generate_error_markup: false), &block) end  | 
  
#select(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object
      52 53 54  | 
    
      # File 'lib/primer/forms/builder.rb', line 52 def select(method, choices = nil, = {}, = {}, &block) super(method, choices, .merge(generate_error_markup: false), classify(), &block) end  | 
  
#text_area(*args, **options, &block) ⇒ Object
      60 61 62  | 
    
      # File 'lib/primer/forms/builder.rb', line 60 def text_area(*args, **, &block) super(*args, classify().merge(generate_error_markup: false), &block) end  | 
  
#text_field(*args, **options, &block) ⇒ Object
      56 57 58  | 
    
      # File 'lib/primer/forms/builder.rb', line 56 def text_field(*args, **, &block) super(*args, classify().merge(generate_error_markup: false), &block) end  |