views:

33

answers:

2

please suggest me a gem or way validation embed video by ruby code. Example: Youtube Video, Google Video.

A: 

You may be interested in using oEmbed to get the embed code of whatever the user pastes. Here's the Ruby version.

marko
A: 

I think a simple WYSIWYG editor would do the trick. We use CKEditor but there are lots of ones out there. A few are jQuery focused, if that is what you are looking into.

This would allow people to enter any embeddable thing, like google form, etc.

smcdrc