module DynamicQuery::Helper

Public Instance Methods

combined_result(result) click to toggle source
# File lib/dynamic_query/helper.rb, line 17
def combined_result(result)
  template = ERB.new(File.read(File.dirname(__FILE__) + '/../../app/helpers/_combined_result.html.erb'))
  content = template.result(binding)
  content.html_safe
end
dynamic_query(panel, opt = {}) { |html| ... } click to toggle source
# File lib/dynamic_query/helper.rb, line 3
def dynamic_query(panel, opt = {})
  html = ''
  yield html if block_given?
  template = ERB.new(File.read(File.dirname(__FILE__) + '/../../app/helpers/_dynamic_query.html.erb'))
  content = template.result(binding)
  content.html_safe
end
dynamic_result(result) click to toggle source
# File lib/dynamic_query/helper.rb, line 11
def dynamic_result(result)
  template = ERB.new(File.read(File.dirname(__FILE__) + '/../../app/helpers/_dynamic_result.html.erb'))
  content = template.result(binding)
  content.html_safe
end