similar to: how to manage group permissions?

Displaying 20 results from an estimated 600 matches similar to: "how to manage group permissions?"

2007 Aug 11
2
Rspec and acl_system2 plugin
Hello, I''m trying to spec a Rails application using the couple restful_authentication/acl_system2 plugins. In my admin layout, I put the following code : <% restrict_to "admin" do -%> <ul id="admin-tabs"> <li> /users Users management </li> </ul> <% end -%> Then in my spec file
2007 Jul 06
3
stubbing helper methods for View specs
Hi there I have several view specs, that include the following snippet in their "before" block to stub the methods by acts_as_authenticated before :each do @u = mock_model(User) @u.should_receive(:name).and_return("Hans Muster") template.should_receive(:logged_in?).and_return(true) template.should_receive(:current_user).and_return(@u) end this
2007 Oct 18
0
ACL System restrict_to
Does the restrict_to method only work in the views for some reason? I have tried it in the controller and i get the "undefined local variable or method `restrict_to'' for Admin::SurveysController:Class" Ive even copied the code from the access_control.rb in the plugin to the application_helper but it still keeps giving the same error. def restrict_to(logicstring, context = {})
2006 Aug 05
2
acl_system2 undefined method `access_control''
I''ve installed acts_as_authenticated and have that working like a charm and now would like to add the acl_system2 plugin so I can do some role based authorization stuff. I went ahead and installed the plugin like this: >ruby script\plugin source http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2 Then I installed the lib and test >ruby script\plugin install lib >ruby
2007 Mar 16
7
how to send mp3 inline?
hey all, I''m trying to do a: send_file @file, :type => ''audio/mp3'', :disposition => ''inline'' ,:stream=>true I tried with all browsers and it always asks me to download the file or open it with a player. Is there a way to make it open in the embeded player (QT,Windows media player,Mplayer etc)? Only with konqueror if I open in new tab then I
2008 Apr 23
2
Bug in eager loading and polymorphic associations?
Hi friends, i''m usgin the edge version because i need eager loading on polymorphic associations support, but i see this: Message.find(:first, :include => :owner) #This generate this query: SQL (0.000072) SET SQL_AUTO_IS_NULL=0 Message Load (0.000389) SELECT * FROM `messages` User Load (0.001070) SELECT * FROM `users` WHERE (users.id IN (1,2)) And this Message.find(:first,
2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
Hi all, I am using the LoginGenerator and Ezra''s acl_system2 to protect certain actions in my controllers. I have written some functional tests to check for correct handling of redirects, flashes, etc. The flashes however only get populated on the first get action in any given test. Here is what I have so far: In the controller: class PageController < AC before_filter
2006 Dec 16
5
trying to add another app
hey all, I have an app working great with apache2 and mongrel_cluster. However, I''m trying to run another application and now when I go to app1.comit falls to app2.com and the opposite. That''s probably because I messed up somewhere with the cluster. this is the content of my conf.d/app1.proxy_cluster.conf: <Proxy balancer://mongrel_cluster> BalancerMember
2007 Nov 09
26
RSpec on Rails 2.0
I have a project on edge rails that I''m trying to convert from Test:Unit to rspec. I have the rspec gem version 2338, the rspec and rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in vendor/rails. I''ve been able to get a few specs passing, have gotten the specs running from autotest, and am able to do "rake spec:doc" and get the basic command
2006 Aug 01
2
HOWTO? security based on data values
Hi! I recently started with RoR and this may be a newbie question. I have a company table, employee table and transactions table. 1 company has many employees. Each employee performs many transactions. Employees from different companies LOGIN to the system to record their transactions. Employees can search on all transactions associated to their companies (indirect relationship via employee),
2006 Sep 02
1
html not rendering apache/mongrel
We are running Apache and Mongrel on RHEL4 and have been experiencing some interesting behaivor. Sometimes when someone logs into our application (it uses the acts_as_authencticaed and acl_system2) the following happens. Instead of the browser rendering the html and displaying all the form elements corretly as you would expect, it simple spews back the output without attempting to render. So
2006 Nov 13
1
Service Temporarily Unavailable when using apache
hey all, I''m trying to do a mongrel_cluster+apache2 config. this is my testapp.conf: <VirtualHost *:80> Include /etc/apache2/conf.d/testapp.common # ErrorLog logs/testapp_errors_log # CustomLog logs/testapp_log combined </VirtualHost> this is my testapp.common: ServerName myapp.com DocumentRoot /home/patcito/testapp/public/ <Directory
2010 Dec 02
0
Expiring password problem with AD config
Hi. I've set up a configuration with a Samba PDC usgin Ubuntu 10.04 and Samba 3.4.7. The backend is LDAP (zimbra ldap). I've an annoying issue, where even if in LDAP for every user I set "password never expires", at every login Windows prompts me for changing it. Is there anything I can check? thanks lorenzo (on a side note I've also the problem that when the user logs
2010 Apr 30
2
Steve Jobs about theora
I guess you've all read it already, but here it goes: "All video codecs are covered by patents. A patent pool is being assembled to go after Theora and other ?open source? codecs now. Unfortunately, just because something is open source, it doesn?t mean or guarantee that it doesn?t infringe on others patents. An open standard is different from being royalty free or open source. Sent
2006 Oct 25
4
need help on special HABTM relation
hey all, I have three tables like this: forum (id,title) usergroup(id,title) forum_perms(usergroup_id,forum_id,read,write,post) is there a way to deal with that kind of relation with rails such as by using has_and_belongs_to_many kind of stuff? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Jul 25
2
Authentication design/ideas
Hi all, I''m using acts_as_authenticated for the front end facing part of my site. I have a model called Customer. I now want to protect the admin sides of things. I am thinking of using Ezra''s acl plugin (http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2/README) for this. My only problem is that I don''t want the model for admin users to be called Customer,
2007 Aug 15
2
need help on writing a plugin
Hey all, I''ve just "script/generate plugin my_plugin" and I would like to "overload" one of my view. Say I have app/views/sessions/new.html.erb and I would like to rewrite that file without touching it using the plugin. Any idea how to do this? I would also like to do the same thing with models and controllers of my application. I couldn''t find a tutorial
2006 May 14
4
searching on foreing keys
Hey all, I''m using a simple search function. It''s working great except for foreign keys. I have one table pets (id,name,owner_id) and another table people(id,name) owner_id being a foreign key of pet pointing to people name. here it is on the pet controller: @paginator, @pets= paginate(:pets, :conditions =>["name OR owner_id like
2006 Nov 13
1
rails+apache2+mongrel_cluster
hey all, I managed to configure a mongrel+apache2 but now I would like to do a mongrel_cluster. For now I have a sites-available/myapp but when it comes to mongrel_cluster I need to set up myapp.common, myapp.proxy_cluster.conf and myapp.proxy_frontend.conf and I couldn''t find a tutorial that explain where should those file go. is it in conf.d or sites-available/ or else? thanx in
2006 Aug 17
1
2 newbie question
Hey all, I have 2 newbie questions, 1st question: <%= collection_select (:region, :id, @regionall, :id, :title,options={:prompt=>"- Select cat -"}) %> Ignores the :prompt part while options={:include_blank => true} works. Any idea what I?m doing work with :prompt ? 2nd question: How can make my collection_selected to display it''s third key by default? I know it has