I am just curious as to why I can't put the following code in the
@get_latestbill = Prov.connection.select_all("
prov_bills.bill_cycle_date AS cd
ORDER BY bill_cycle_date DESC
@latestbill = @get_latestbill.to_s.slice(2,10)
session[:date2use] = @latestbill
It gives me a "500 Internal Server Error Content-Type: text/html" error.
However, when I use it within actions in my other controllers, it works
perfectly. It would be very helpful in my app if I can use this in my
- Jeff Miller