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

 

Michael Cerna Chicago-based Rails Developer and Avid Musician. More ...

Search

Categories

  • Home (15)
  • Rails Plugins (5)
  • Pages (9)
  • Archives

    Tags

    BlogRoll