Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Andre' Jones
Andre' Jones
26,671 Points

Video Library Site with rails

I want to make a video library site with rails but im not sure how to begin goin about it. I want to have a array of videos listed on a page that the user can sort. I think my main problem is that all the videos are hosted by a site called screencast and to display a single video on the site I have to embed the code from that site.

Any Ideas

Andre' Jones
Andre' Jones
26,671 Points

is there a way to store the embed code in the database

Andre' Jones
Andre' Jones
26,671 Points

I think thats the way to go. make a form > upload code-video title-etc > go from there

Andre' Jones
Andre' Jones
26,671 Points

Anyone used the Sanitize gem - its going to save all the tags as a string - i think now i need to make an unstring method or look for one that will take the code out of the string to display it

s = "something" puts s something

May not have to use a method to unstring it but well see

Andre' Jones
Andre' Jones
26,671 Points

Turns out I made this way to complicated. all I had to do was enter the code then when i wanted to display it use the method .html_safe at the end

1 Answer