search for: current_

Displaying 3 results from an estimated 3 matches for "current_".

Did you mean: current
2011 Nov 28
4
getting a subdomain name in model.
...n Ability.rb ( the file which is placed in models if we install cancan gem). Below is the condition I wanted: ========================================================= user ||= User.new # guest user (not logged in) if (user.role == ''admin'' && user.site_name == current_subdomain_name) can :manage, :all else can :read, :all end ======================================================= current_subdomain_name should be the name of the subdomain on which user is browsing. But i could not get it. I have tried the following was but could not su...
2005 Jan 27
0
Need some advises configuring asterisk to callover INTERNET
Hi, You might want to first read http://www.digium.com/handbook-draft.pdf which explains most of the basic stuff. Most of the questions you'll have will be answered on http://www.voip-info.org or by reading http://www.asteriskdocs.org/modules/tinycontent/content/docbook/current_ v1/docs-html/book1.html Oh, and most questions have also been answered on this mailing list so look at http://lists.digium.com/pipermail/asterisk-users/ for the mailing list archives. When you've read that and understand what you're doing you should be well on your way :) Guills > ---...
2011 Jul 28
0
CanCan filtering meta_search results?
...jects 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 unsubscribe...