James Bond wrote: > I use will_paginate to get results: > > @results = Users.paginate(:all, :conditions => "... > > But how can I get a number of reults?
to get a number of result you can get it by : @results.size if @results.size < 1 flash[:notice] = "There's no result so its data is empty." end - Ruby Servant - [Some times i am terrorist of it] -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---