Sha256: 9af13af1bda7f6063e136d0d1a773a6d501ccd14245bc71fe10bd1c68d1b82ae

Contents?: true

Size: 425 Bytes

Versions: 11

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Uploader
  module Helpers
    module FormBuilder
      # Render uploader field
      # Usage:
      #
      #   <%= form_for @article do |f| %>
      #     <%= f.uploader_field :picture %>
      #   <%= end %>
      #
      def uploader_field(method, options = {})
        @template.send(:uploader_field_tag, @object_name, method, objectify_options(options))
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-uploader-0.5.9 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.8 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.7 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.6 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.5 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.4 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.3 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.2 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.1 lib/uploader/helpers/form_builder.rb
rails-uploader-0.5.0 lib/uploader/helpers/form_builder.rb
rails-uploader-0.4.5 lib/uploader/helpers/form_builder.rb