Displaying 3 results from an estimated 3 matches for "current_s".
Did you mean:
current_cs
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 suc...
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
2011 Jul 28
0
CanCan filtering meta_search results?
At the moment, I am running meta_search, and then filtering through
CanCan after I have a set of results. Is there any other way to
restrict the 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 =