Re: [Rails] Re: Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Bryan Crossland
On Sun, Apr 10, 2011 at 10:23 PM, Ad Ber wrote: > Todd A. Jacobs wrote in post #992052: > > On Apr 10, 7:42pm, Ad Ber wrote: > >> @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.income, s.price > FROM > >> pays as P LEFT OUTER JOIN suggests AS s ON s.b_id = p.b_id WHERE > >> p.created_at BET

[Rails] Re: Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Ad Ber
Todd A. Jacobs wrote in post #992052: > On Apr 10, 7:42pm, Ad Ber wrote: >> @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.income, s.price FROM >> pays as P LEFT OUTER JOIN suggests AS s ON s.b_id = p.b_id WHERE >> p.created_at BETWEEN '2008-03-04' AND '2008-07-06' ") >> > [snip] >> <%= form.

[Rails] Re: Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Todd A. Jacobs
On Apr 10, 7:42 pm, Ad Ber wrote: > @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.income, s.price FROM > pays as P LEFT OUTER JOIN suggests AS s ON s.b_id = p.b_id WHERE > p.created_at BETWEEN '2008-03-04' AND '2008-07-06' ") > [snip] > <%= form.message %> > It gives me an error missing attr