You cannot post messages because only members can post, and you are not currently a member.
|
How to join 3 tables
|
| |
Hello, I don't speak english very well but i'll try.. :) So , i need to joind three ou more tables but when i click on button " join" i have just choice to join two tables but i want to join 5 tables May someone helps me to resolve my requirement, please ! Best regards, Mehdi Battache
|
|
Partial restriction on download method.
|
| |
I like to restrict the access in a download method in a dataset controller with authlogic and acl9. The download method at the moment is restricted to logged in users only. But now I like to have one format to be downloadable for everybody. The method looks like this: def download @dataset.log_download(current_ user)... more »
|
|
created_at is not being set
|
| |
I am on Rails3 and has_role! invocation fails. I think I have
everything setup correctly. Do I need to create a RoleUser class?
user.has_role! :admin
Role Load (0.5ms) SELECT "roles".* FROM "roles" WHERE (name = 'admin'
and authorizable_type IS NULL and authorizable_id IS NULL) LIMIT 1
Role Exists (0.5ms) SELECT 1 FROM "roles" INNER JOIN "roles_users"... more »
|
|
how to monitor if the roles for a user change ?
|
| |
I need to monitor when the roles for a user change (say a role is
added or deleted).
The natural thing that occurs to me is to place callbacks (eg,
before_save) in the join table (say roles_users if the subjects are
users).
However, acl9 uses HABTM associations so there is no model associated
with the join table.... more »
|
|
parameters inside access control
|
| |
Hi, first of all sorry for posting in portuguese, kk
now in english
i has te following code:
access_control do
#----------------------------- ---Permissões liberadas para
administrador----------------- ------------------
allow :Administrador
#----------------------------- -----------Permissões para... more »
|
|
parametros dentro do acess control
|
| |
Bom dia pessoal eu tenho seguinte código:
access_control do
#----------------------------- ---Permissões liberadas para
administrador----------------- ------------------
allow :Administrador
#----------------------------- -----------Permissões para
indicators-------------------- --------------------... more »
|
|
assigning role in seed.rb
|
| |
Hi I need to create default admin profile in seed.rb.
Tried smoething like this:
user=User.find_or_create_by_em ail(:login=>'some
login',:password=>'some_pass', :password_confirmation=>'some_ pass',:email=>'some_m...@gmail .com').save!
user.has_role! :admin
But it doesn't work and returns :... more »
|
|
Self ownership
|
| |
It is possible to add access control that allows the current_user to
access the user show action it they are that user!?
Something like
UsersController <AC::BAse
access_control do
allow :admin
# allow if the current_user is @user, :to => [:show]
deny anonymous, :except => [:new]... more »
|
|
|