Class: AgileFormFields::FileField
- Inherits:
 - 
      AgileFormField
      
        
- Object
 - AgileFormField
 - AgileFormFields::FileField
 
 
- Defined in:
 - app/models/agile_form_fields/file_field.rb
 
Overview
Implementation of file_field AgileRails form field.
Form options:
- 
type:text_field (required) - 
name:Field name (required) - 
html:html options which apply to text_field field (optional) 
Form example:
10:
  name: title
  type: file_field
  size: 30
  Instance Attribute Summary
Attributes inherited from AgileFormField
Instance Method Summary collapse
- 
  
    
      #render  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Render text_field AgileRails form field code.
 
Methods inherited from AgileFormField
get_data, #hash_to_options, #html, #initialize, #options_to_hash, #record_text_for, #ro_standard, #set_css_code, #set_default_value, #set_initial_value, #set_style, #t
Constructor Details
This class inherits a constructor from AgileFormFields::AgileFormField
Instance Method Details
#render ⇒ Object
Render text_field AgileRails form field code
      44 45 46 47 48 49  | 
    
      # File 'app/models/agile_form_fields/file_field.rb', line 44 def render return self if @readonly @html += @env.file_field(nil,@yaml['name'], @yaml['html']) self end  |