Sijo Kg wrote:
> Hi
>     If u use gem install to install will_paginate the library files you 
> can find inside /usr/lib/ruby/gems/#versionNo/gems/ (For linux) for 
> windows you have to find out where the location..I think in 
> ProgramFiles(right?)
>      You can find all the installed gems there .And go to will_paginate 
> directory there Inside that go to lib directory .There you can find out 
> the required file..
> 
> Sijo

Thanks,Sijo,

   i apply all these code ,but it is not working as i need.
   i want only particular div is replaced but total page
   is refresh.here is my code.
    in controller::
       @user = User.paginate :page => params[:page], :per_page => 2
    in view ::
      <table>
  <% for usr in @user%>
  <tr><td><%=usr.user_name%></td>
   <td>
  <%= link_to_remote 'Edit User',
:update => 'GeneralDiv',
:complete =>  "Element.show('GeneralDiv');",
:url => "/userinfo/edituser/#{usr.id}"  %></td>
 <td>
  <%= link_to_remote 'Delete User',
 :confirm => 'Are you sure?',
:update => 'GeneralDiv',
:complete =>  "Element.show('GeneralDiv');",
:url => "/userinfo/deleteuser/#{usr.id}" %></td></tr>
<% end %>

<%= will_paginate @user, :update=>'GeneralDiv',
:params=>{:controller=>'userinfo',:action=>'showuser'},
:complete=>"Element.show('GeneralDiv');",
 :container => false %>
</table>
   and i also apply ur code in view_helpers.rb.
   i attach this file.

   any suggestion,
                                 thanks.

Attachments:
http://www.ruby-forum.com/attachment/2861/view_helpers.rb

-- 
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