script/plugin install git://github.com/imanel/svg_web.git
or, if you are updating a previously installed version
To use SvgWeb, you must drop a script tag into your HTML page. This must be the first script tag on your page:
Next, to embed image on page use helper:
After that file “public/svgs/example.svg” will be embedded. You can also provide subdirectories or other directories - exactly like image_tag helper.
svg_tag "subdirectory/example.svg" svg_tag "/images/svg_subdirectory/example.svg"
Additionally any html attribute may by added:
svg_tag "example.svg", :id => "exampleId", :width => "300", :height => "200"
For more info about usage of script please read:
Everything else was made by Bernard “Imanel” Potocki and released under the MIT license.