Sha256: 7e635829eb801193f2deedd1a1a4533f5d8ba52d42c9a29393ac03c27a43fa4b

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

<% # Clients of this partial must supply the following variables:
   # template
   # object_name
   # method
   # options %>

<% sketchily_tag = ActionView::Helpers::InstanceTag.new(object_name, method, template, options.delete(:object)) %>

<%= render :partial => "sketchily/embed",
           :formats => :html,
           :locals => {:id => sketchily_tag.send(:tag_id),
                       :value => sketchily_tag.value(sketchily_tag.object),
                       :show_menu => options[:show_menu],
                       :hide_image_tool => options[:hide_image_tool],
                       :canvas_width => options[:canvas_width],
                       :canvas_height => options[:canvas_height],
                       :canvas_expansion => options[:canvas_expansion],
                       :hide_rulers => options[:hide_rulers],
                       :width => options[:width],
                       :height => options[:height]} %>

<%= sketchily_tag.to_input_field_tag("hidden", options.except(:show_menu, :hide_image_tool, :canvas_dimensions, :canvas_expansion, :hide_rulers, :width, :height)) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sketchily-0.0.2 app/views/sketchily/_sketchily.html.erb~