Module: FidelityHelper

Defined in:
app/helpers/fidelity_helper.rb

Instance Method Summary collapse

Instance Method Details

#fidelity_for(options = {}, &block) ⇒ Object



2
3
4
5
6
7
# File 'app/helpers/fidelity_helper.rb', line 2

def fidelity_for options={}, &block
  width = options[:width] || 800
  ('div', :class => 'container', :style => "width:#{width}px") do
    yield Fidelity::Builder.new(self, &block) if block_given?
  end
end