-
Notifications
You must be signed in to change notification settings - Fork 901
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
Version#changeset raises a ArgumentError #88
Comments
Please can you post the YAML in question? |
|
Your YAML seems to be stripped of new lines. Is that correct? |
Sorry, I get it using a ERB page, that is from terminal:
|
From the db console:
|
Thanks for those outputs. The problem is the YAML engine fails to parse the YAML string (which it generated in the first place). >> require 'active_support'
>> YAML::load "--- !map:ActiveSupport::HashWithIndifferentAccess \nlast_sign_in_ip: \n- 200.205.205.178\n- 186.200.37.235\nlast_sign_in_at: \n- 2011-08-23 13:41:41 Z\n- 2011-08-26 22:24:20 Z\nsign_in_count: \n- 159\n- 160\ncurrent_sign_in_ip: \n- 186.200.37.235\n- 200.205.205.178\nc"
ArgumentError: syntax error on line 13, col 1: `'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'
from (irb):12 Unfortunately I have no idea why it fails. |
This may be a long shot, but I've had some problems with PaperTrail's compatibility with one of the YAML parsers out there. I switched from psych to syck (or the other way around), and that fixed my problem. |
As a follow-up, I had added this to my config/boot.rb file to fix the problem I had: require 'yaml' |
@mstalker Thanks for posting that. |
It appears as though the error being thrown is the result of an errant YAML::load "--- !map:ActiveSupport::HashWithIndifferentAccess \nlast_sign_in_ip: \n- 200.205.205.178\n- 186.200.37.235\nlast_sign_in_at: \n- 2011-08-23 13:41:41 Z\n- 2011-08-26 22:24:20 Z\nsign_in_count: \n- 159\n- 160\ncurrent_sign_in_ip: \n- 186.200.37.235\n- 200.205.205.178\n" It seems to work fine (with both If anyone thinks there is something errant in the PaperTrail code that could have caused this, please let us know and I will try to do a deeper investigation to address this problem. I could see a case for potentially swapping in |
The text was updated successfully, but these errors were encountered: