Sha256: 291c733d5467ea574ce3a398d7c7cf38d2ea90c2e761dea4b348d644d171dc7f

Contents?: true

Size: 983 Bytes

Versions: 1

Compression:

Stored size: 983 Bytes

Contents

<% # Clients of this partial must supply the following variables:
   # name
   # id
   # value
   # options %>

<%= render :partial => "sketchily/embed",
           :formats => :html,
           :locals => {:id => id,
                       :value => value,
                       :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]} %>

<%= tag :input, { "type" => "hidden", "name" => name, "id" => id, "value" => value }.update(options.except(:show_menu, :hide_image_tool, :canvas_dimensions, :canvas_expansion, :hide_rulers, :width, :height).stringify_keys) %>

Version data entries

1 entries across 1 versions & 1 rubygems

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