Sijo Kg wrote:
> Hi
> 
>   Which version of gem r u using?
> In controller you can do like
> @user = User.paginate :page => params[:page], :per_page => 2
>   and in view you can do
> <%= will_paginate 
> @user,:update=>'GeneralDiv',:params=>{:controller=>'userinfo',:action=>'showuser',:sd_id=>@sd_ticket},
>  
> :container => false %>
> 
> I dont know why you use :complete=>"Element.show('GeneralDiv');"
> 
>    Also pass the params (if any) to will_paginate in view..And restart 
> your server also.
> 
> Sijo

  thanks,Sijo,
     but the problem is still pending.when i click on next page link,
     total page is refresh like normal pagination.
     here is my code,

  <%= will_paginate @user, :update=>'GeneralDiv',
:params=>{:controller=>'userinfo',:action=>'showuser'},
:container => false %>
    can i call the same function 'showuser' every time .
    the div is replaced after refreshing of total page,can i stop
    this page refresing,this is not possible using this code.
    beside that i am using rails version 2.1.1.
                             Any suggestion?
                             Thanks.
-- 
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to