When i run find_by_sql the extra fields not in the Model  are returned
as Strings.

What is the correct way to convert all the extra fields to their correct
type?  Is there a way to somehow define these extra fields in the Model
class to ensure they will always be returned correctly? Or is their a
better method.

I will be using find_by_sql a lot so a clean solution would be good.
(I am using Mysql)s

Thanks in advance
Chri
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to