views:

386

answers:

1

I want to allow users to submit a vimeo url and embed that in a player. Is there a plugin or gem that does that?

Thanks

A: 

Vimeo has details on how to embed using their API: http://www.vimeo.com/api/docs/oembed

Under their "unofficial downloads" page, there is this gem: http://github.com/matthooks/vimeo

Jay
Turns out I don't have to do anything except remove 'h' in front of it...obviously that leaves a big opening for hackers. I'm using 'sanitize option'...is that enough?
Senthil
Remove h from in front of what?
theIV
<%=h app.description %> From what I understand 'h' prevents sql injections by hackers, and also embedding of stuff, unless you specifically allow for it with sanitize.
Senthil