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

cannot encode ActiveSupport::TimeWithZone #56

Closed
joel opened this issue Jul 3, 2011 · 2 comments
Closed

cannot encode ActiveSupport::TimeWithZone #56

joel opened this issue Jul 3, 2011 · 2 comments

Comments

@joel
Copy link

joel commented Jul 3, 2011

After update rabl gem version from 0.2.8 to 0.3.0 have the Error Message when i try to print date

The stack trace

gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:416:in `valenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `objenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `each'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `map'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `objenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:408:in `valenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `objenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `each'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `map'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:422:in `objenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:408:in `valenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:427:in `arrenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:427:in `map'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:427:in `arrenc'
gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb:409:in `valenc'
gems/multi_json-1.0.3/lib/multi_json/engines/ok_json.rb:15:in `encode'
gems/multi_json-1.0.3/lib/multi_json.rb:72:in `encode'
rabl (0.3.0) lib/rabl/engine.rb:50:in `to_json'
rabl (0.3.0) lib/rabl/engine.rb:28:in `send'
rabl (0.3.0) lib/rabl/engine.rb:28:in `render'
@nesquena
Copy link
Owner

nesquena commented Jul 4, 2011

In your gemfile, add:

# Gemfile

gem 'json'

and see if that fixes it.

@joel
Copy link
Author

joel commented Jul 4, 2011

Great ! It works

@nesquena nesquena closed this as completed Jul 8, 2011
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