Module: MethodDrawTag::ActionViewBaseInstanceMethods

Defined in:
lib/method_draw/method_draw_tag.rb

Instance Method Summary collapse

Instance Method Details

#method_draw_tag(name, value = nil, options = {}) ⇒ Object Also known as: svg_edit_tag



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/method_draw/method_draw_tag.rb', line 3

def method_draw_tag(name, value = nil, options = {})
  self.render(
    :partial => "method_draw/method_draw_tag",
    :locals => {
      :name => name,
      :id => sanitize_to_id(name),
      :value => value,
      :options => options
    }
  )
end