Sha256: 7ed673ce0c425270452d4715320d2e9e41775eea7f3139ca1b1d7698dd06761a

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

module BrowseEverythingHelper

  def array_to_hidden_fields(array,key)
    fields = array.to_query(key).split(Rack::Utils::DEFAULT_SEP).collect do |pair|
      key,value=pair.split('=', 2).map { |str| Rack::Utils.unescape(str) }
      hidden_field_tag(key,value)
    end
    fields.join("\n").html_safe
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browse-everything-0.4.5 app/helpers/browse_everything_helper.rb
browse-everything-0.4.4 app/helpers/browse_everything_helper.rb
browse-everything-0.4.3 app/helpers/browse_everything_helper.rb
browse-everything-0.4.2 app/helpers/browse_everything_helper.rb
browse-everything-0.4.1 app/helpers/browse_everything_helper.rb
browse-everything-0.4.0 app/helpers/browse_everything_helper.rb
browse-everything-0.3.0 app/helpers/browse_everything_helper.rb
browse-everything-0.2.0 app/helpers/browse_everything_helper.rb
browse-everything-0.1.1 app/helpers/browse_everything_helper.rb
browse-everything-0.1.0 app/helpers/browse_everything_helper.rb