Now try this:
git clone git://github.com/rails3book/ticketee
cd ticketee
git checkout origin/account_scoping -b account_scoping
bundle install
bundle exec cucumber features/assigning_permissions.feature:32
You should get the same non-error that I am. This is the only way I can reproduce this issue.
Looks like ActionDispatch::Routing::RouteSet#handle_positional_args is deciding to assign :account_id from the User object. :id is also somehow assigned from the User object. I didn't investigate too much further here.