Re: how to get query which was created by Rails Model.

William Pratt
Wed, 19 Dec 2007 19:09:05 -0000

In logs/development.log if you are in development environment,
production.log if you are in production.

-Bill

Pokkai Dokkai wrote:
> how to get query which was created by Rails Model.
> like ,if i write
>
> Model.find(:all)
>
> then output should be like below
>
> "select * from models"
>
> is there any idea ?
>