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
Thanks
Erez
On Mar 16, 9:12 am, “[email protected]” [email protected] wrote:
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs