K
K
kostya21072015-04-03 22:11:11
YouTube
kostya2107, 2015-04-03 22:11:11

Rails, how to enable users to add youtube videos to their profiles on their own?

The user has his own album with a video, how can he insert a frame on his own?
Sorry for the simple question, I'm new to this.
If it's not difficult to chew on the steps ...
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Scriabin, 2015-04-04
@Romanche

I don’t understand rails, but as I know, there is work with the database. It is necessary to add to the application in the form a field for entering the code from YouTube, and when submitting, write the data from the form to the database. before that, of course, either add a new field to the video table, or create a "user_id - video_id" table. Before saving, of course, make sure that this is really a code from YouTube, and not some kind of injection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question