I believe this is a very very fundamental question, but since I am new
to Rails, it's more productive to ask someone to point out what I need
Say, I have a search method that generates a list of youtube videos. I
have completed this part.
And also, I have set up a database, Video, whose fields are video_title
I need to place a button to each of these video outcomes.
My question is :
when clicking the button, how can I automatically send the URL of the
corresponding video and simultaneously redirect to NEW page where users
can create a new video entry??? In other words, in the creating new
page, the URL (and hopefully the video_title) is to be already filled
I am thinking that I need to set "routes.rb" so that redirecting can
some values together. But routing is very confusing to me so far.
Could anyone help me out?