Module: Rad::Face::CiModelHelper

Defined in:
lib/face/ci_model_helper.rb

Instance Method Summary collapse

Instance Method Details

#attachments(name, options = {}) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/face/ci_model_helper.rb', line 2

def attachments name, options = {}    
  render_attribute name, options do |fname, value, o|
    html = form_helper.hidden_field_tag(fname, '') + "\n"
    html += form_helper.attachments_tag fname, value, o
    html
  end
end