Hello All, I am using Kaminari gem for pagination. I want to do a ajax search on the same page of the data in the table which is a list of images with names. Can anyone suggest anything ? Thanks, Avi -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/84e892d4-a5bb-4e0f-8bde-f00f85ea719b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi Avinash, Instead of Kaminari gem try Jquery datatables it gives u default pagination, search, and sort features you can customize it according to your needs Regards, Rajesh On Friday, July 19, 2013 11:15:30 AM UTC+5:30, Avi wrote:> > Hello All, > > I am using Kaminari gem for pagination. > I want to do a ajax search on the same page of the data in the table which > is a list of images with names. > > Can anyone suggest anything ? > > > Thanks, > Avi >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a68eba5-84d5-4ec2-8224-970a83aaa5a8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
I have tried with that. There are more than 3000 records. So datatable is taking time to load every time page refreshes unlike kaminari. On Fri, Jul 19, 2013 at 2:18 PM, Rajesh reddy <rajeshnecg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Avinash, > > Instead of Kaminari gem try Jquery datatables it gives u default > pagination, search, and sort features you can customize it according to > your needs > > Regards, > Rajesh > > On Friday, July 19, 2013 11:15:30 AM UTC+5:30, Avi wrote: >> >> Hello All, >> >> I am using Kaminari gem for pagination. >> I want to do a ajax search on the same page of the data in the table >> which is a list of images with names. >> >> Can anyone suggest anything ? >> >> >> Thanks, >> Avi >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/8a68eba5-84d5-4ec2-8224-970a83aaa5a8%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Thanks, Avi -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ9B1dONap_M-Xv5AJk7Cew%3DxwuivRtiS8kUj7vTe4O2R%3DKDHA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Hey man,
What''s up? I read you email, and a fast way to solve this problem is
putting a remote true in your search form, you can easily render a partial,
maybe called _products.html.erb on callback view, something as index.js.erb.
So, your action will be the same but will respond to js and html.
You should do some jquery to setup a flash message if any product was found, and
another one to re-render your partial.
$(selector).html("<%= j render ''product'' %>")
I did not test it, so maybe there are done typo or syntax errors here. I am in
the bus, any other doubt, please let me know.
Hope it will help you
Nice day
Enviado via iPhone
Em 19/07/2013, às 05:52, avinash behera
<aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> escreveu:
> I have tried with that.
> There are more than 3000 records. So datatable is taking time to load every
time page refreshes unlike kaminari.
>
> On Fri, Jul 19, 2013 at 2:18 PM, Rajesh reddy
<rajeshnecg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Hi Avinash,
>>
>> Instead of Kaminari gem try Jquery datatables it gives u default
pagination, search, and sort features you can customize it according to your
needs
>>
>> Regards,
>> Rajesh
>>
>> On Friday, July 19, 2013 11:15:30 AM UTC+5:30, Avi wrote:
>>>
>>> Hello All,
>>>
>>> I am using Kaminari gem for pagination.
>>> I want to do a ajax search on the same page of the data in the
table which is a list of images with names.
>>>
>>> Can anyone suggest anything ?
>>>
>>>
>>> Thanks,
>>> Avi
>>
>> --
>> You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send
an email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/8a68eba5-84d5-4ec2-8224-970a83aaa5a8%40googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
>
> --
> Thanks,
> Avi
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAJ9B1dONap_M-Xv5AJk7Cew%3DxwuivRtiS8kUj7vTe4O2R%3DKDHA%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/8E874CD5-45A1-49FC-8B83-08FFAF197F45%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.