I was trying to test a simple index view, which has following code inside: - if can? :destroy, MyModel %th Options MyModelsController has following options (Inherited Resources + CanCan + Devise): class MyModelsController < ApplicationController inherit_resources nested_belongs_to :mymodel before_filter :authenticate_user! load_and_authorize_resource :project load_and_authorize_resource :mymodel,