activescaffold/active_scaffold — Issue #93: clicking on the search button doesn't refresh the page
Author: khelal
Created: 2011-11-21 17:58:01+00:00
State: open

Using the same environment as in [issue 83](https://github.com/activescaffold/active_scaffold/issues/83), using the search fields doesn't generate the proper results.

Here is again the screenshot of the interface:
![AS Problem](http://902west.com/monaqasat_activescaffold.png)

The use case is:
1. Fill any search field
2. Hit Search
> Request is sent and queries are done (as can be seen in logs below)
> Screen doesn't change
3. Hit Refresh on the Browser
> Results are shown

Here are the logs
````
Started GET "/en/guru/tenders?escape=false&utf8=%E2%9C%93&search%5Breference%5D%5Bopt%5D=%25%3F%25&search%5Breference%5D%5Bfrom%5D=&search%5Breference%5D%5Bto%5D=&search%5Bname%5D%5Bopt%5D=%25%3F%25&search%5Bname%5D%5Bfrom%5D=101&search%5Bname%5D%5Bto%5D=&search%5Bfee_type%5D%5Bopt%5D=%25%3F%25&search%5Bfee_type%5D%5Bfrom%5D=&search%5Bfee_type%5D%5Bto%5D=&commit=Search" for 2.49.141.185 at Mon Nov 21 17:53:44 +0000 2011
Processing by Admin::TendersController#index as JS
Parameters: {"commit"=>"Search", "escape"=>"false", "utf8"=>"✓", "locale"=>"en", "search"=>{"name"=>{"from"=>"101", "to"=>"", "opt"=>"%?%"}, "reference"=>{"from"=>"", "to"=>"", "opt"=>"%?%"}, "fee_type"=>{"from"=>"", "to"=>"", "opt"=>"%?%"}}}
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_column_headings.html.erb (8.0ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_messages.html.erb (0.2ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_human_conditions.html.erb (0.6ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_action_group.html.erb (1.6ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_actions.html.erb (2.5ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_messages.html.erb (7.1ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_record_columns.html.erb (9.2ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_action_group.html.erb (4.2ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_actions.html.erb (65.8ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_record.html.erb (76.5ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list_pagination.html.erb (352.8ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/_list.html.erb (448.3ms)
Rendered /data/www/20/shared/bundle/ruby/1.8/bundler/gems/active_scaffold-cd338e0310f4/frontends/default/views/list.js.erb (450.2ms)
Rendered admin/tenders/list.html.haml (455.7ms)
Completed 200 OK in 478ms (Views: 456.6ms | ActiveRecord: 3.8ms)
````