Hello Mark, thanks... but, my problem is bigger than that or I don't
know how that the answer is easy.
So, I have a structure like this. (view)
<div id="my_client_list">
<% @client_list.each do |client| -%>
<%= client.name%>
....... .. .. .. ..
<% end -%>
<%=will_paginate(@client_list, :params => {:controller => "client",
:action => "search_result", :foo => "$F('name')"})%>
</div>
<div id="search_form_div">
<form class="sidebar-search-companies" id= 'search_form'>
<label for="nome">Nome</label>
<%= text_field_tag :name%>
.... .... ...
</form>
<%= observe_form :search_form, :frequency => 0.5, :url => { :action
=> "search_result" } %>
</div>
What I wanna do is, pass the :name.value of the search form to the
paginate action, so when the result is paginated I will still have the
same results. Otherwise, when I go the the second page for example, I
will have the second page of all my clients, not the result of the
search.
Sounds confusing... did you understand?
Tks,
David Sousa
--
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 [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
-~----------~----~----~----~------~----~------~--~---