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

AD
Wed, 19 Dec 2007 20:12:01 -0000

check out the query_trace plugin, it logs where in the application a query
was generated.

On Dec 19, 2007 2:09 PM, William Pratt
<billp-YbheRAKfYF4eIZ0/mPfg9Q@public.gmane.org> wrote:

>
> 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 ?
> >
>
> >
>