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
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---