L
laredotornado
Hi,
I have this code
@users = find
all, :conditions => conditions,
age => {:size =>
page_size, :current => page_num} )
if (@users.count == 0)
flash[:notice] = "No results found."
render :action => 'search'
end
but as many of you can guess, it gives me a "undefined method: count"
error. Same if I try "length". What is the right way to count the
results of the query? - Dave
I have this code
@users = find
page_size, :current => page_num} )
if (@users.count == 0)
flash[:notice] = "No results found."
render :action => 'search'
end
but as many of you can guess, it gives me a "undefined method: count"
error. Same if I try "length". What is the right way to count the
results of the query? - Dave