Sha256: 75f0e005c52e81b7a6b3400b64d41f6776b58ba0e0052eb1031641ce3832555b

Contents?: true

Size: 531 Bytes

Versions: 9

Compression:

Stored size: 531 Bytes

Contents

module ApplicationHelper
  def gmaps4rails_filters_display(model)
    if model.constantize.respond_to?("gmaps4rails_filters") 
      display = '<form name="gmaps4rails_form">'
    	display += '<select name="gmaps4rails_list" onChange="gmaps4rails_resfreshmap()">'
    	model.constantize.gmaps4rails_filters.each do |filter_hash|
    		display += '<option value="' + filter_hash["filter"] + '+' + filter_hash["options"] +'">' + filter_hash["display"]
    	end
    	display += '</select></form>'
    end
    return display
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gmaps4rails-0.0.13 lib/application_helper.rb
gmaps4rails-0.0.12 lib/application_helper.rb
gmaps4rails-0.0.11 lib/application_helper.rb
gmaps4rails-0.0.10 lib/application_helper.rb
gmaps4rails-0.0.9 lib/application_helper.rb
gmaps4rails-0.0.8 lib/application_helper.rb
gmaps4rails-0.0.7 lib/application_helper.rb
gmaps4rails-0.0.4 lib/application_helper.rb
gmaps4rails-0.0.3 lib/application_helper.rb