Hi, i downloaded the source for the book and i wanted to look up the source for Authorizing Users with Roles but i can not find it. Does the example come with the code you can download or is it not in there ?
It appears that not only the Roles part is missing. I downloadd the source code today (27Feb09) and found. I could not find the more basic *Athenticating Your Users @app/views/admin/signin.rhtml@ file among other things. I wish you could update the download file to include these.
has_and_belongs_to_many is deprecated as of rails 3.1. Perhaps this recipe needs to be updated to use has_many :roles, :through => roles_users or some_such.