Displaying 4 results from an estimated 4 matches for "live_search".
2006 Feb 09
6
troubleshooting an observe_field
Hi,
I''ve got a live_search field in a partial that is on several different
pages. On all pages, except 1, it works fine. On the page it doesn''t work
on, it seems it never executes it action.
Here''s my observe_field code inside the partial:
<h1><label for="searchtext">Live Search:<...
2006 Jun 07
5
little Live search problem
Works fine but when you use backspace or delete on the search word and
it hits 0 characters it displays ALL the Test names in the database!
def live_search
@phrase = request.raw_post || request.query_string
a1 = "%"
a2 = "%"
@searchphrase = a1 + @phrase + a2
@results = Test.find(:all, :conditions => [ "test_name LIKE ?",
@searchphrase])
@number_match = @results
render(:layout => false)...
2006 Jan 04
1
Autocomplete howto?
On 3 Jan 2006, at 20:00, rails-request@lists.rubyonrails.org wrote:
>def auto_complete_for_dealing_which_store
> search = params[:dealing][:which_store]
> @stores = Dealing.search(search) unless search.blank?
> render :partial => ''live_search''
>end
>
>and my entire partial:
><ul class="autocomplete_list">
><% for deal in @dealings.to_a %>
><li class="autocomplete_item"><%= link deal.which_store, deal %></li>
><% end %>
></ul>
It looks...
2006 Jan 03
5
Pagination Question
Hi -
I''ve just started working with Rails, having come from a Cold Fusion
background. I''m curious how best to deal with a huge result set. For
example, I''m building an app that contains users. I''ve used
scaffolding to setup my initial pages for CRUD operations on users.
All that is great. The problem is, I''m going to end up with 1000+
users in