Topic: paginating find plugin - undefined method `delete' for 1:Fixnum

Hello, I'm new to rails and programming.

I try to paginate list of wallpapers uploaded by user.
Because i do not find any method to paginate using rails default method for params[:id] so i'm using the paginating find plugin.

I follow the instructions given but this error shows up:

NoMethodError in WallpaperController#user

undefined method `delete' for 1:Fixnum

#{RAILS_ROOT}/vendor/plugins/paginating_find/lib/paginating_find.rb:59:in `find'
#{RAILS_ROOT}/app/controllers/wallpaper_controller.rb:241:in `user'


here what is in my controller :-

wallpaper_controller.rb

@wallpapers = Wallpaper.find(:all,
        :conditions => ["user_id = ?", params[:id]],
        :order => "date desc ",
        :page_size => 5,
        :page => params[:page] || 1,
        :manual_paging => true)


in my /views/wallpaper/user.rhtml

<% @wallpapers.each do |wallpaper| %>
%= link_to(image_tag...bla bla bla %%%>
<%end%>

page <%= @wallpapers.page %> of <%= @wallpapers.page_count %>
<% if @wallpapers.previous_page? %>

<%= link_to 'previous page',
:action => 'page',
:page => @wallpapers.previous_page?,
:user_id => params[:id]%>
<% end %>

<%if @wallpapers.next_page? %>
<%= link_to 'next page',
:action => 'page',
:page => @wallpapers.next_page?,
:user_id => params[:id]%>
<%end%>


Thank you..