search for: accessible_by

Displaying 1 result from an estimated 1 matches for "accessible_by".

2011 Jul 28
0
CanCan filtering meta_search results?
...he returned objects within the initial search query? def index @search = User .search :first_name_or_last_name_or_practice_name_or_role_contains_any => params[:search].to_s.split('' '') @users = @search.order(''last_name ASC, first_name ASC'').accessible_by(current_ability).page(params[:page]) end Thanks in advance, Walter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To un...