Open thesubr00t opened 11 years ago
You're probably running into #646
Dear submitter, Since cancan/raynB hasn't been active for more than 6 months and no body else then ryam himself has commit permissions the cancan project is on a stand still. Since cancan has several issues including missing support for rails 4 cancan is moving forward to cancancan. More details on: #994
If your feel that your pull request or bug is still applicable (and hasn't been merged in to cancan) it would be really appreciated if you would resubmit it to cancancan (https://github.com/cancancommunity/cancancan)
We hope to see you on the other side!
I have a 3 level association as follow:
I have defined the ability as follow:
When I call
accessible_by(current_ability)
on the prices_controller index action:It gives the error
Mysql2::Error: Unknown column 'rooms.hotels' in 'where clause': SELECT
prices.* FROM
pricesINNER JOIN
roomsON
rooms.
id=
prices.
room_idINNER JOIN
hotelsON
hotels.
id=
rooms.
hotel_idWHERE
rooms.
hotels= '---\n:user_id: 2\n' LIMIT 5 OFFSET 0
Here is the complete development log.