-
Notifications
You must be signed in to change notification settings - Fork 103
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
JSON::GeneratorError in Admins#new #32
Comments
I cannot reproduce this, but there seems to be a problem with some gems. See: http://stackoverflow.com/questions/18399655/rails-4-asset-pipeline-throws-only-generation-of-json-objects-or-arrays-allowed and http://stackoverflow.com/questions/18394817/json-error-with-coffeescript-rails-asset-pipeline Please let me know if the above links help you fix this problem. |
I encountered the same error , even including multi_json 1.7.8 doesn't solve this issue . |
Actually i tried it with 1.9.3 , it threw the same error . Tried with 2.0.0 and the error goes away . |
Thanks @kumardev, I can reproduce it now. I will look into a solution for this. |
It seems execjs 2.0.0 is the culprit. See this issue. I added |
@mischa78 issue was fixed in just released |
Thanks @ixti |
@ixti I upgraded to execjs 2.0.1, but I still get the same error when using Ruby 1.9.3. This happens in a CoffeeScript file in my Rails 4 project. Am I doing something wrong? Should the mentioned issue be reopened? |
It's really strange. Let me recheck. UPDATE I have:
Compiled all assets without any problems. |
Ruby version: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0] I'm using these gems: Using rake (10.1.0) Here's the trace:
Thanks for your help. |
OK. That's really similar problem but in a different place. I wonder why it worked on my local machine o_O I'll provide a fix ASAP. Thanks. |
Great! Thanks again. |
@mischa78 I have made new PR to ExecJS, so once it will be merged it should be finally fixed. Sorry for delay. |
Yes, I saw it. Thank you. I'll just keep 1.4.0 in my Gemfile till your PR gets merged, so no problem. |
@mischa78 ExecJS v2.0.2 contains a proper fix (all places are string aware) |
Showing /home/ubuntu/Documents/deneme/boxroom/app/views/layouts/application.html.erb where line #10 raised:
only generation of JSON objects or arrays allowed
(in /home/ubuntu/Documents/deneme/boxroom/app/assets/javascripts/application.js.coffee)
ty
The text was updated successfully, but these errors were encountered: