Module: ActionView::Helpers::FormTagHelper

Defined in:
lib/h5_uploader.rb

Instance Method Summary collapse

Instance Method Details

#uploader_field_tag(name, *args) ⇒ Object



64
65
66
67
68
69
70
71
72
# File 'lib/h5_uploader.rb', line 64

def uploader_field_tag(name, *args)
  options = args.extract_options!
  Fg::H5Uploader.parse_uploader_options options,name
  
  js_tag = javascript_tag(Fg::H5Uploader.uploader_js_content(name,options))
  div_tag = (:div,(:noscript,file_field_tag(name)),:id => options[:id])
  div_tag << js_tag

end