Hello all.. I'm new in Ruby on Rails. I'm doing an application which needs to use pagination. This is ok. I got to use it and I didn't find any error. But I've got to put a city names "research" too. That's the problem. The pagination failed. the variable doesn't take its value. Below it's my city's list:
Aracaju Editar Excluir Borborema Editar Excluir BrasÃlia Editar Excluir Campinas Editar Excluir Campo Largo Editar Excluir Curitiba Editar Excluir Curralinho Editar Excluir Diadema Editar Excluir Florianópolis Editar Excluir Fortaleza Editar Excluir I want to look for all cities with letter "a". My code find them. But when I try to go to 2nd page, there is an error: You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] My variable doesn't take the "research". Does anybody know what I can do about that? Thanks a lot.. -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---