Love ActiveScaffold: Show always Searchbox

2008 October 5
by admin

ActiveScaffold is a great plugin to build edit form easily. Nicely AJAX and nested forms support (well with limits ;-) . One thing which bugged me all the time, was the extra click you had to do to show the searchbox. Well I solved it like this:

  def index
    active_scaffold_config.list.label += render_to_string( :action => :search, :layout => false )
    super
  end

I know, it’s kind of bad hack, as the label actually isn’t supposed to contain a form – but it works out quite well!

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS