I am building a project in rails 3.1, and I am having this message always printed when I do:
debug params
— !map:ActiveSupport::HashWithIndifferentAccess
Can any one please explain this error message ?? and why — !map ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That isn’t an error message. The method
debugconverts the object you give it to YAML (a way of serializing objects to a string, not unlike XML or JSON) and prints it out. The--- !mapis just part of the YAML format (see http://yaml.org/spec/1.2/spec.html) andActiveSupport::HashWithIndifferentAccessis the class name ofparams.Instead of using
debug, door
Both will show you nicer output.