Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue can't convert Time into String #15

Open
lothar59 opened this issue Oct 20, 2011 · 2 comments
Open

issue can't convert Time into String #15

lothar59 opened this issue Oct 20, 2011 · 2 comments

Comments

@lothar59
Copy link

I have this issue when trying to create a new record. I'm using rails 2.3.4

columns = [:libelle]
=> [:libelle]
values = ["russe"]
=> ["russe"]
Langue.import columns, values
TypeError: can't convert Time into String
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in <<' from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:inadd_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:in each' from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:319:inadd_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:311:in each_pair' from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:311:inadd_special_rails_stamps'
from /home/thomas/.rvm/gems/ruby-1.8.7-p352/gems/ar-extensions-0.9.5/lib/ar-extensions/import.rb:205:in `import'
from (irb):7

any ideas ?

@zdennis
Copy link
Owner

zdennis commented Oct 20, 2011

@lothar59, what version of Rails/ActiveRecord are using?

@lothar59
Copy link
Author

hum I have both activerecord (3.1.1, 2.3.4), but I'm guessing that If I'm using rails 2.3.4 then I'm using also activerecord 2.3.4. Am I guessing wrong ? I have this in my environment file : RAILS_GEM_VERSION = '2.3.4'

EDIT : hum and rails I have 2.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants