Sha256: bbffb9f99d307a1a5207a4016916f3763dec1fa6ed782f7affcecd064b733a87

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 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_width, :canvas_height, :canvas_expansion, :hide_rulers, :width, :height)) %>

Version data entries

2 entries across 2 versions & 1 rubygems

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