How to generate url from use input


#1

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