[Rails] Re: will_paginate
>
> The only difference in your two methods is the Contract.find...
>
> Not knowing what the search_index or find_by_params methods do
> precisely, could you create a single build_conditions method in the
> Contract model that returns 'cond' and covers all your search cases to
> simplify your logic?
>
> index and list are awfully similar... do you need both?
I don't need both, I tried but I had no success using generic
I think I've done something wrong in model.
Using generic i have to modify my model?
I'm quite confused with that, because I usually use will_paginate
without filter.
Cheers
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home