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

Version Path
s3_multipart-0.0.4 lib/s3_multipart/action_view_helpers/form_helper.rb
s3_multipart-0.0.3 lib/s3_multipart/action_view_helpers/form_helper.rb
s3_multipart-0.0.2 lib/s3_multipart/action_view_helpers/form_helper.rb