Sha256: 375ded14bcbd7f13d8fee967bde072b2522ec8d85f384e3326980d16e7f36419

Contents?: true

Size: 394 Bytes

Versions: 11

Compression:

Stored size: 394 Bytes

Contents

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.4.4 lib/uploader/helpers/form_builder.rb
rails-uploader-0.4.3 lib/uploader/helpers/form_builder.rb
rails-uploader-0.4.2 lib/uploader/helpers/form_builder.rb
rails-uploader-0.4.1 lib/uploader/helpers/form_builder.rb
rails-uploader-0.4.0 lib/uploader/helpers/form_builder.rb
rails-uploader-0.3.4 lib/uploader/helpers/form_builder.rb
rails-uploader-0.3.3 lib/uploader/helpers/form_builder.rb
rails-uploader-0.3.2 lib/uploader/helpers/form_builder.rb
rails-uploader-0.3.1 lib/uploader/helpers/form_builder.rb
rails-uploader-0.3.0 lib/uploader/helpers/form_builder.rb
rails-uploader-0.2.8 lib/uploader/helpers/form_builder.rb