I have routes.rb:
resource :account, :only => [:show, :update]
In my ability.rb, I have
can :read, Account, :id => user.account_id
I have defined def update and def show functions in my AccountsController
This configuration gives me 403, Access denied error when I do a GET request for /account. But if I change my ability.rb to
can :manage, Account, :id => user.account_id
it works fine. Any reason why my :show function is not being mapped to :read?