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

> Thanks
>
> Erez
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to