I am new at Ruby-on-Rails. I could use some help after looking around at this site and Cancan Guides. I am have trouble getting this to work for Cancan and Devise. the User (Devise) only has Prices, s
I have various roles defined by CanCan in my rails application. I recently implemented jQueryUI autocomplete and it works well.The problem is that when I submit the form, the find_by_name that occurs
I\'m running into problems defining user permissions in my cancan controller: class Ability include CanCan::Ability
I am using authlogic and cancan on a rails 3 application, I want to allow all logged in users to access the users index page, i have tried something like this but it dosent seem to be working:
I\'m a Rails noob and am hoping someone can help me wrap my head around this issue.I have an app that has a single User model using Authlogic for authentication and CanCan for authorization.There are
I am using cancan for my app my ability.rb class is class Ability include CanCan::Ability def initialize(user)
I\'m (finally) wiring CanCan / Ability into my app, and I\'ve started by writing the RSpec tests.But they\'re failing — my Abilities appear to be overly permissive, and I don\'t understand why.
I have built a small ruby webservice, in this I have implemented cancan authorization. I followed this tutorial. The problem is that, I can\'t find out the way to assign at the user, when they do the
in my app I have projects which have permissions. If the user has a permission record for a project they can view the project. If not, CanCan redirects them to the root.
here is my problem: I\'m using cancan gem. I think all is set up well, except for one thing, that produces undefined method \'user_type?\' for \"admin\":String.