PAGINATION PROBLEM

Dear all..
i m using rails paginator class in my application.
i can able to see my pagination working but its not providing me the
current page number in my view
it displays like below
PREVIOUS 2 3 4 5 6 7 8 9 10 11 12 109 NEXT

<% if user_list.length > 1 %>
<%if userlist.current.previous %>

    <%= link_to_remote 'PREVIOUS',
                          :url => {
                            :controller => "users",
                            :action => action,
                            :type => type,
                            :page => user_list.current_page.previous,
                            :company => company } -%>

  <%end%> |

<% pagination_links_each(user_list, :window_size => 10 ) do |link| %>

    <% options = { :url => {:controller => "users",
                            :action => "search",
                            :type => type,
                            :page => link,
                            :company => company} %>

    <%=link_to_remote(link.to_s, options)%>

  <% end%>

<%if user_list.current.next%>

       <%= link_to_remote 'NEXT', :url => {:controller => "users",
                            :action => "search",
                            :page => user_list.current_page.next,
                            :type => type,
                            :company => company} %>

  <%end%>

i dont know how to display current page.....
Pls guide me on my issue

Thanks