search for: foeh

Displaying 4 results from an estimated 4 matches for "foeh".

Did you mean: foe
2006 Mar 17
3
Timestamps casted to nil?
...;valid_from"=>"01.03.1999 14:09:21 CET", "valid_thru"=>nil, "lastlogin"=>"13.03.2006 16:04:58", "password"=>"cbd8f7984c654c25512e3d9241ae569f", "login"=>"PS12345", "email"=>"jan.foeh@parship.de"}> >> puts me.valid_from nil => nil Using before_type_cast, I can see the content is still there, albeit as string: >> puts me.valid_from_before_type_cast 01.03.1999 14:09:21 CET => nil Saving a modified object sets all timestamps to nil: >> me.valid=...
2006 Mar 27
5
Fake ActiveRecord model?
Hi all, I have a legacy table which I cannot get to work with ActiveRecord (no ids etc). All I want is to create a class which opens a connection manually and allows me to execute some plain SQL statements. What I can''t figure out is how to either build up a connection and execute queries from a non-AR inherited class, or how to create a AR-inherited class minus all the AR magic and
2006 Mar 14
4
ruby-postgres: can''t convert string to integer
Hi everybody, I''m experiencing trouble when trying to use ruby-postgres with a legacy database I need access to. To me it seems the problem is the VARCHAR columns used there as primary keys. On a simple me = User.find(''PS12345'') I get a type error exception with the message ''can''t convert String into Integer''. The trace is:
2006 Jan 23
2
DRY encoding conversion and onload ajax execution
Hi everybody, my first Rails app is a frontend for customer data pulled from a legacy postgres database. The db is encoded in Latin1, but my pages will be UTF-8. What is the best way of character encoding conversion? I haven''t found any way to have Rails deal with this natively, so I assume I have to take care of this myself, right? Where would I place my conversion code if I want