Simple Object Tag Generator for Rails
October 10th, 2007
I love using SWFObject in javascript to generate clean embed tags. But, most of the time, I just want a simple plugin, that works just like an ActionView helper, and generates my embed tags intelligently from the filetype that I pass in! So, here is what I use, Lemme know if you find it useful!
./script/plugin install svn://ahgsoftware.com/simple_object/trunk |
Typical usage..
1 2 3 4 5 |
# In a 'view', with just default parameters simple_object_tag "/example.mp3" # with some additional parameters, real ones, and crazy ones.. simple_object_tag "/flashgame.swf",:scale=>"tofit",:junk=>"shizzle" |
Thats it, simple, but, one of my most used personal plugins!
Leave a Reply