Advanced search form & Named scopes

I have an Asset model in a Real Estate app

See the Search form & Model here:
http://www.qcm.co.il/qcme/index.html

What is the best way to join all named_scope(asset_params) (lines
27..34) to line 36

Thanks

Erez

I have an Asset model in a Real Estate app

See the Search form & Model here:http://www.qcm.co.il/qcme/index.html

What is the best way to join all named_scope(asset_params) (lines
27..34) to line 36

What you can do is

scope = self
scope = scope.assettype_filter(...) if (...)
scope = scope.dealtype_filter(...) if (...)
...
scope.paginate ...

Fred