Displaying 20 results from an estimated 2000 matches similar to: "cancan and authorization on controller actions of a gem."
2012 Mar 30
1
cancan breaks scoped mass assignment
Hi all,
I just installed cancan on a new project and found out that it creates
some problems with the new scoped mass assignment features of rails 3.2
.
Basically, in my User model I create some attr_accessible attributes in
order to avoid users to edit their roles or other sensitive information.
From the administration I allow admins to edit those protected
attributes by passing
2012 Oct 15
0
CanCan load_resource get a nil resource
Hi,
I''ve opened a question on StackOverflow regarding #load_resources and
a create action in UserController:
http://stackoverflow.com/questions/12882284/load-resource-get-a-nil-resource
Could anyone please give me some hints?
thank you!
enrico
--
· Enrico Stano
·
· twitter @enricostano
· skype ocirneonats
--
You received this message because you are subscribed to the Google
2014 Mar 25
0
cancan gem being replaced
I just came across this so I thought I would post it on this board since I
see cancan come up a lot. It seems that Ryan Bates (who is primarily
responsible for cancan) is taking a hiatus and the gem is no longer being
actively maintained. The collaborators on that gem have formed a new team
and have released the gem cancancan which is now cancan updated for Rails
4. You read more about it
2014 Mar 25
0
Looking for some glue between Strong Parameters and CanCan
Hello Rails World,
does anybody know a good solution for Strong Parameters in a Rails app
authorized by Cancan (or a similar authorization gem)?
def user_params
if current_user.admin?
params.require(:user).permit!
else
params.require(:user).permit(:password, :password_confirmation)
end
end
Now I want to do this the "Cancan way". My first idea looks strange to me:
def
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
I have implemented Devise for Authentication and Authorization in ROR
application everything seems fine but getting one issue. I have two
modals "Account" and "Transactiona" , and so two controllers
respectively.
My Transaction Index view call one of Account Controller method like
this
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello
I have a rails 3 app and I am trying to implement the redirect back
action at access denied for cancan.
If I try this in my application_controller:
rescue_from CanCan::AccessDenied do |exception|
redirect_to :back
end
It gives the following error:
No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this is a test,
make sure
2011 Mar 02
1
Setting CanCan ability.rs model
I successfully made login system with Devise and CanCan, and I have 3
types of users. Admin, internal and global users. I created
Controllers and index actions: Admin, Cpanel, Report and State, and I
want to restrict access to this controllers for some users.
Admin user should have privilegies to access: Reports(all), State
(read), Admin (all)
Global user should have privilegies to access:
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 =
2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello!
While running bundle exec rake, I receive following error (see in
attached file)
However, my tests are steel passing with command rspec spec/controllers/
Some info:
ads_controller.rb:
class AdsController < ApplicationController
load_and_authorize_resource except: :create
end
ads_controller_spec.rb:
require ''spec_helper''
describe AdsController do
render_views
2011 Aug 20
0
New Authorization gem announce -- Six
I made new authorization gem. (https://github.com/randx/six)
My goal is to make something like cancan but more easier to understand
& without any magic.
I''ll be grateful for any feddback and your opinion
--
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
2009 Oct 28
2
mislav-will_paginate(will_paginate)
mislav-will_paginate(will_paginate) doesn''t work after search.
servers_controller.rb
def index
@servers = Server.paginate(:page => params[:page], :per_page => 20,
:order => ''device_id ASC'')
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @servers }
end
end
def search
@servers =
2010 Dec 02
8
CanCan issue when being very specific
So I got CanCan and Devise working well. I have two types of users:
Admins and Nonadmins. Admins can edit all of Nonadmins profiles.
The problem is, every user (either Admin or Nonadmin) belongs to an
Account or Organization. Admins should only be able to edit users from
their own Account or Organization. I was able to do that too.
The problem is, I can''t display the Create New User
2016 Aug 15
2
pjproject 2.5.5 + asterisk-certified-13.8-cert1 : many Error loading module...undefined symbol
Hello
using pjproject 2.5.5
using asterisk-certified-13.8-cert1
Compiled pjproject 2.5.5 with :
./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --prefix=/usr
--libdir=/usr/lib64 --enable-shared --disable-video --disable-sound
--disable-opencore-amr
Compiled Asterisk 13 with
./configure --libdir=/usr/lib64
All pjproject modules are selectable in menuselect, so here no problem.
2012 Sep 20
0
Source code of Fedena 2.3 is released to public
The latest version of Fedena - the opensource school management system is
now available to public for free download.
Official Blog post - http://projectfedena.org/blog/17-fedena-2-3-released
Github - https://github.com/projectfedena/fedena
Download instructions - http://projectfedena.org/download
Fedena now powers more than 40,000 institutions around the world. It
includes the most notable
2009 Aug 12
1
app_voicemail.so: undefinied symbol: global_app_buf
Hello,
I recently completed a fresh install of Asterisk
SVN-group-srtp-r183146M-/trunk , and I'm running into an issue getting the
voicemail application module to load. Output from debug shows:
-------------------------------
[Aug 11 22:00:01] NOTICE[20173]: loader.c:875 load_modules: 1 modules will
be loaded.
[Aug 11 22:00:01] WARNING[20173]: loader.c:376 load_dynamic_module: Error
loading
2006 Feb 24
2
r56 - trunk/debian
Author: tha-guest
Date: 2006-02-24 23:45:10 +0000 (Fri, 24 Feb 2006)
New Revision: 56
Modified:
trunk/debian/README.Debian
trunk/debian/changelog
trunk/debian/control
trunk/debian/linux-2.6.12-xen.patch
Log:
hopefully for the last commit before release ;-P
- xen-hypervisor & -pae now recommends grub (besides PXE-Boot there is no alternative)
- updated & added some more to
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
2007 Mar 26
0
rx_fax and Asterisk 1.4.2
Hi,
I have recently upgraded from Asterisk 1.2.15 to 1.4.2 and I'm
experiencing trouble
with rx_fax. I have followed instructions posted by Sems:
http://www.sems.org/entry.asp?ENTRY_ID=197
I'm using spandsp-0.0.3pre28 and the app_rxfax and app_txfax
from:
http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asterisk-1.4/
rx_fax and tx_fax are both enabled via make
2005 May 22
1
error starting asterisk: undefined symbol: __i686.get_pc_thunk.dx
I saw a few people mentioning they were running or trying to run
asterisk on Xen. Last night I checked out v1-0, compiled, ran "make
install; make samples", then started asterisk with "asterisk -vvvvc".
Several modules refused to load giving this error:
[chan_sip.so]May 22 13:48:41 WARNING[4308]: loader.c:258
ast_load_resource: /usr/lib/asterisk/modules/chan_sip.so:
2009 Dec 18
2
FAX for Asterisk
Just finished with the instructions from digium website/ net on how to
compile FFA:
After restart, modules did not get loaded so tried to load manually:
[Dec 18 14:31:26] WARNING[11002]: loader.c:359 load_dynamic_module:
Error loadin ile: No such file or directory
[Dec 18 14:31:26] WARNING[11002]: loader.c:653 load_resource: Module
'res_fax.so
Verified the files exist:
astbh00*CLI>