Sha256: 75672aadeb4a5babff8712551581c94cc8e956db5f4f54b4fe06710a4fc9304e

Contents?: true

Size: 430 Bytes

Versions: 21

Compression:

Stored size: 430 Bytes

Contents

module Uploader
  module Helpers
    module FormTagHelper
      include ActionView::Helpers::JavaScriptHelper
      
      # A helper that renders file upload container
      #
      #   <%= uploader_field_tag :article, :photo %>
      #
      def uploader_field_tag(object_name, method_name, options = {})
        uploader = FieldTag.new(object_name, method_name, self, options)
        uploader.to_s
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
rails-uploader-0.0.1 lib/uploader/helpers/form_tag_helper.rb