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.1.4 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.1.3 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.1.2 lib/uploader/helpers/form_tag_helper.rb
glebtv-rails-uploader-0.1.3 lib/uploader/helpers/form_tag_helper.rb
glebtv-rails-uploader-0.1.2 lib/uploader/helpers/form_tag_helper.rb
glebtv-rails-uploader-0.1.1 lib/uploader/helpers/form_tag_helper.rb
glebtv-rails-uploader-0.0.8 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.1.0 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.8 lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.7/lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.7 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.6 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.5 lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.4 lib/uploader/helpers/form_tag_helper.rb
rails-uploader-0.0.3 lib/uploader/helpers/form_tag_helper.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/lib/uploader/helpers/form_tag_helper.rb