the application develop under migration hobo 1 hobo 1.0.3.
this line of code not work more:
hobo_index company.lost_is(false).apply_scopes( :search => [params[:search], :name], :order_by => parse_sort_param(:name, :last_call, :lost, :user, :country, :status, :sector), :user_is => user)
the problem here lost_is
not seem return values acceptable next routine is: apply_scopes
.
so... how can solve problem?
- maybe make changes make
lost_is
produce values acceptableapply_scopes
- or maybe change
params[:search]
search recordslost
column setfalse
?
thank you!
jacek
adding condition scopes should work:
hobo_index company.apply_scopes( :lost_is => false, :search => [params[:search], :name], :order_by => parse_sort_param(:name, :last_call, :lost, :user, :country, :status, :sector), :user_is => user)
regards, ignacio
Comments
Post a Comment