# Active Scaffold search error

**URL:** <https://www.ruby-forum.com/t/active-scaffold-search-error/93049>\
**Category:** Rails\
**Created:** [April 26, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/active-scaffold-search-error/93049 "2007-04-26T23:13:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanoverton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Post date:** [April 26, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/active-scaffold-search-error/93049/1 "2007-04-26T23:13:39Z")

</div>

I have active scaffold searching in fields, which works, but if there is  
more than 1 page of results and I click on next, or page 2 , it just  
defaults back to the way it was before the search params were put in,  
and  
resets the view. Here is my code:

lass PatronController \< ApplicationController  
layout “admin”

ActiveScaffold.set\_defaults do |config|  
config.actions \<\< :field\_search

end

active\_scaffold :book do |config|  
config.actions.exclude :delete, :create, :update  
config.label = “Books at Highland Park United Methodist Church”  
#config.actions \<\< :field\_search  
#config.actions \<\< :field\_search  
#config.active\_search.link.label = “Search By Field”  
config.columns = [:title, :author, :publisher, :dewey, :callletter,  
:descriptio  
config.list.columns.exclude :description, :publisher, :callletter  
#config.list.sorting = {:title =\> ‘ASC’}

end  
end
