Displaying 20 results from an estimated 200 matches similar to: "Ezra''s acl_system2 and flash not getting populated in functional tests"
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
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 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
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 Aug 31
1
Need architectural help avoiding render :component
I''m writing a CMS/portal system, and I''m having trouble coming up with
a way of routing requests that feels right without using render
:component (which I''ve read should never be used). The system works
like this:
Each user has a set of "pages" which are shown as navigation tabs on
the page. The user may rename, reorder, add, or delete pages for a
custom
2007 Aug 23
0
how to manage group permissions?
Hey all,
In my app users can create groups and the group creator can "kick" or
"ban" users. I want the creator to be able to grant other members of
the group to kick and ban.
This is how I want to do it:
I''m usgin acl_system2 and the creator can grant kick and ban
permissions to group members by creating roles "kick_group_id" or
"ban_group_id" for
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,
2006 May 31
3
validate unless, LoginGenerator difficulty
I apologize if this is a very simple question; I''ve searched the forums,
wiki, Google, and Agile Web Development with Rails to no avail.
Is there a way to put conditional validation in the model? For
instance, if I want to limit items a user can add unless the user is an
admin? My current code is:
validates_uniqueness_of :user_id, :scope => ''event_id'',
2006 Jan 17
1
Rails too Active?
I feel the need to protest about a disturbing trend in the vibrant RoR
community - name dilution.
ActiveRecord is called that precisely because it is that. The name come
from Martin Fowler, and it expresses a class which is a database record,
only _active_ - that is with methods & behaviors (unlike a classical
database record, which is completely passive.) If you look in the
2006 Oct 06
0
Ezra''s Call For Help...
So has anyone thought about tackling his ToDo list? I would like to
contribute if i can, but i don''t want people making changes and then find
out someone has already done so. I guess what i am saying is that i can
step up and help organize the changes that people would like to modify and
aid in testing them. What does everyone think? Does anyone have any items
they would like to
2006 Jun 19
2
Any word or status on Rubuntu Ezra???
I know you have been busy with mongrel and other projects.
Is ther a test image available anywhere for Rubuntu?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060619/e09588a0/attachment.html
2007 Oct 23
0
Dammit, you''re all admins now (especially since Ezra and Kirk are mostly MIA)
This is stupid, I made Luis, Wayne, Evan, and Filipe admins. Make anyone else admins that you want and do all the changes you need. Especially since you guys are mostly running the show anyway.
--
Zed A. Shaw
- Hate: http://savingtheinternetwithhate.com/
- Good: http://www.zedshaw.com/
- Evil: http://yearofevil.com/
2008 Jun 01
2
Is Ezra''s RESTful recipe needed anymore?
Hi all,
In the recent Advanced Rails Recipes book, Ezra states that Rails needs a
little bit of adjustment for its restful routing to work with Facebook. He
suggests created an initializer named facebook_overrides.rb and adding this
code:
http://pastie.caboo.se/206696
But I was just testing restful routing without that code, and Rails seemed
to be working fine with Facebook.
2006 Aug 18
1
Ezra....allow_concurrency = false?
In a previous email you wrote this:
Glad you''re getting some use out of the plugin ;) ActiveRecord does
have some issues with threading and concurrency that can sometimes
cause that error you are seeing. Open up your script/backgroundrb/
start file and comment out the following line:
ActiveRecord::Base.allow_concurrency = true
Make sure you do that up in your main app script folder
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just
straight HTML, I only used the form helpers for the form tag as so:
--
<%= form_tag({:action => :send_request}, {:method=>:post,
:name=>''childsplay''})%>
--
In my page controller I have this:
--
def send_request
email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I
2006 Mar 21
0
theme_generator custom application views
I''ve installed the theme generator but am having trouble getting custom
application views working. Let''s say I define a action called ''test'' in
the controller.
class PageController < ApplicationController
theme ''bluebird''
layout ''default''
def test
end
end
Now if I define a rhtml page called
2007 Feb 15
0
My domain name is appearing the :id
On my site my domain details (live/)is appearing in the parameters call:
Processing PageController#view (for 217.204.65.130 at 2007-02-15
11:12:48) [GET]
Session ID: 00d981dc7904b6d78605f1868f41e78b
Parameters: {"action"=>"view", "id"=>"live/home.html",
"controller"=>"page"}
Causing and error finind the file.
How can I get
2007 Jul 24
6
Mocking Access Control
I''m trying to jump on the TDD/BDD bandwagon, but am having trouble
understanding how i should mock my user. The user has a habtm
relationship to a roles model (acl_system2 plugin), but I''m not sure
how to tell rspec about a model.
My code:
describe UsersController do
integrate_views
before(:each) do
@user = mock_model(User)
2006 Mar 22
4
Problem with ACL plugin system
Don''t know if anyone else has experienced this but I''m having a problem
with the access_denied method in Ezra''s ACL access control plugin. It''s
working fine (in conjunction with acts_as_authenticated) until it comes
across a user it denies access to, in which case it throws the following
error:
NoMethodError in Admin#index
protected method