Sha256: 5485c7cf32877da751b7f43b94a895601cbaca3ccf7c5d9e50ccebda5f69adaf
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
module Dropzone module ActionView module Helpers def dropzone(entity, profile) url = Dropzone::Engine.routes.url_for :controller => 'dropzone/profiles', :action => 'info', :only_path => true, :format => :json, :profile_id => profile.to_s, :entity_id => entity.id raw("<div class='dropzone-ui' data-url='#{url}'></div>") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dropzone-1.0.6 | lib/dropzone/action_view/helpers.rb |
dropzone-1.0.5 | lib/dropzone/action_view/helpers.rb |
dropzone-1.0.3 | lib/dropzone/action_view/helpers.rb |