hi; i use will_paginate the first page come true but all other page get the same data of first page i checked in controller "page" parameter works true but paginate get only first page's data and shows these data in all pages forexample first page seen A,B second page also seen A,B but second page must be C,D my code is;
controller : @list = Company::Env.paginate :page => params[:page],:conditions => ['CODE = ?', code], :per_page => 2 view : <%if @list != nil and @list.size != 0%> <% for l in @list%> <tr class="table-row" > <td class="collection-table-text"> <%= l.CODE %> </td> </tr> <% end%> </table> <%= will_paginate @list%> <% end%> i use rails 2.3.2 jruby 1.3.1 will_paginate 2.2.2 thank you -- 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 rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---