Sha256: 6baf9ba4492411530314cd95efe47171473e33c41c25c79c5eb2373c73698836
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
module S3Multipart module ActionViewHelpers module FormHelper def multipart_uploader_form(options = {}) html = file_field_tag options[:input_name], :accept => options[:types].join(',') html << options[:html].html_safe html << button_tag(:class => options[:button_class]) do content_tag(:span, options[:button_text]) end end end end end ActionView::Base.send :include, S3Multipart::ActionViewHelpers::FormHelper
Version data entries
3 entries across 3 versions & 1 rubygems