Hi,

I have a text field which is :

<%= text_field( "select", "name" ,{:onchange =>
"this.form.submit();"} ) %>

I want to search database using value entered by user, and when search
results are displayed, I want to have text field retailn the value
which was entered to have search results.

I did something like this,

<%  eventname = params[:select_name]%>
  <%if eventname!=nil%>
    <% @select.name = eventname %>
    <%  end %>

Still, it does not contain that value which user entered.

Can anyone help please?

Thanks very much,
Pat

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to