Displaying 3 results from an estimated 3 matches for "current_ability".
2011 Nov 28
4
getting a subdomain name in model.
Hi all,
I am facing problem in getting subdomain name inside the model. The
following is my setup.
I am using cancan for authorization.I wanted a specific condition in
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
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?
...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 from t...