Sha256: 3b9d78179704ca27b2bf95bd58b0b11acd6638f2b79b2ac561a39835a6e26d6e

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

# coding: utf-8
require "formtastic"
require "renderer"

module Formtastic
  module Inputs
    class UploadifyInput
      # include ActionView::Helpers::TextHelper
      include Base

      def to_html
        uploader = Renderer.render("shared/uploadify/#{method.to_s}/form", {:form => builder})
        input_wrapping do
          label_html << uploader.html_safe
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uploadify_rails-0.0.15 lib/uploadify_rails/hooks/formtastic.rb
uploadify_rails-0.0.14 lib/uploadify_rails/hooks/formtastic.rb
uploadify_rails-0.0.12 lib/uploadify_rails/hooks/formtastic.rb