Neetal Sharma
2009-Mar-07 09:48 UTC
Will_paginate when used with ajax going on show method.
Hi I have a problem while implementing pagination. Am using will_paginate for it. I have a index page where am dispalying a list of users with pagination. Also there is a search feature, when user searches the users list ll be changed according to the search result.Now comes the problem. This list of users is changed depending upon the search criteria ,with the help of ajax am achieving it. And the pagination links are also getting replaced with the ajax call. Now when am clicking on prev next links , it is going on show method and id as "mehtod_name". I have declared the method search_user in my routes.rb , but still not working . Please Help Thanks in Advance Neetal -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Neetal Sharma
2009-Mar-09 09:46 UTC
Re: Will_paginate when used with ajax going on show method.
Neetal Sharma wrote:> Hi > I have a problem while implementing pagination. > Am using will_paginate for it. > > I have a index page where am dispalying a list of users with pagination. > > Also there is a search feature, when user searches the users list ll be > changed according to the search result.Now comes the problem. > > This list of users is changed depending upon the search criteria ,with > the help of ajax am achieving it. And the pagination links are also > getting replaced with the ajax call. Now when am clicking on prev next > links , it is going on show method and id as "mehtod_name". I have > declared the method search_user in my routes.rb , but still not working > . > > > > > Please Help > > Thanks in Advance > Neetal========================== Problem solved , it was a routes problem only. As i was creating the method through routes , but the aplphabatical order was not correct , so it was going to show.But now its working. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---