Rails 3.1.3

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
to do.

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
and URL.

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
out.

I am thinking that I need to set "routes.rb" so that redirecting can
take
some values together.  But routing is very confusing to me so far.

Could anyone help me out?

soichi

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to