crowdint/rails3-jquery-autocomplete — Issue #141: Access denied with cancan
Author: foohey
Created: 2012-02-14 18:02:25+00:00
State: open

I'm experiencing issues with cancan

I want to autocomplete a namespaced model `Game::Sheet`
I my controller I have

```ruby
autocomplete :game_sheet, :name, :full => true, :class_name => "Game::Sheet"
```
In my ability model, the role have

```ruby
can [:read, :update], Game::Sheet
```

But the autocomplete path return
`CanCan::AccessDenied in Admin::GamesController#autocomplete_game_sheet_name`

And I confirm that happen only with autocomplete, the role can read & update `Game::Sheet` without problem via `Admin::GamesController`

(Autocomplete work great without cancan)