Forum: Ruby on Rails How to generate url from use input

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
24d9717225c76b22d4f3691911269ad6?d=identicon&s=25 Venture Lee (liwenqiu)
on 2008-11-19 09:06
(Received via mailing list)
Hi,
      Is there any way i can generate url according to use input
dynamically. Now, i have a route :

      map.search '/search/:word', :controller => 'words', :action =>
'search'

      and then i also have a input page which just contain a text input
field and button. I want to generate URL like this "/search/:word" when
i
click the button, and the :word parameter is come from the value of text
input field while user input.
      How can do that? Thinks guys
This topic is locked and can not be replied to.