Re: Login controller additions

Nicholas Seckar
Thu, 10 Mar 2005 15:53:31 -0000

On Thursday 10 March 2005 10:35, Jonas Montonen wrote:
> The problem is that if a user does not have the role "admin"
(id=1) the
> @session[''user''].roles.find(1) statment fails with error
"unable to find
> role with id = 1".
You''re probably looking for find_first.

--

Nicholas Seckar aka. Ulysses