# Console pasting weirdness

**URL:** <https://www.ruby-forum.com/t/console-pasting-weirdness/145637>\
**Category:** Rails\
**Created:** [August 12, 2008, 11:29am UTC](https://www.ruby-forum.com/t/console-pasting-weirdness/145637 "2008-08-12T11:29:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [August 12, 2008, 11:29am UTC](https://www.ruby-forum.com/t/console-pasting-weirdness/145637/1 "2008-08-12T11:29:16Z")

</div>

This is an odd one. I’m looking at a block of params sent through to  
one of my controllers. As far as i can tell it works fine in the  
controller. However, i wanted to check something so i looked at my log  
file (with tail), and copied and pasted the params hash into my rails  
console.

BUT: when it comes through, one of the double-quotes is mysteriously  
disappearing, which breaks the parsing of the hash. It’s always the  
same double quote. I copied it into gedit (i’m in ubuntu 8.04) and it’s  
fine. I pasted it into vi as well and it looks fine there too.

I copied it from gedit into the console and got the same problem.

This just seems really random to me - does anyone have an explanation by  
any chance?

BTW i tried it in standard irb and the same thing happens, except that  
only the text after the troublesome double-quote symbol comes through.

This isn’t stopping me working or anything but it’s one of those  
troubling quirks that will continue to niggle away at me.

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [August 12, 2008, 11:31am UTC](https://www.ruby-forum.com/t/console-pasting-weirdness/145637/2 "2008-08-12T11:31:29Z")

</div>

BTW, in case it’s relevant, here’s the params hash in question. The  
double-quote that goes missing is at the start of the value for  
lesson\_id (ie just before 5422-1-Variety-test) about 3/4 of the way  
through.

params = {“schedule”=\> {“start\_date(1i)”=\>“2008”,  
“start\_date(2i)”=\>“8”, “start\_date(3i)”=\>“12”, “start\_date(4i)”=\>“10”,  
“start\_date(5i)”=\>“08”}, “time”=\>“5 mins”,  
“plan”=\>{“year\_group”=\>“2”, “cross\_references”=\>"", “assessment”=\>“some  
stuff about assessment”, “date”=\>"",  
“displayed\_sections”=\>":schedule-section:cross-references-section:notes-section:",  
“notes”=\>“some general notes “, “differentiation”=\>“differentiation  
information “, “school”=\>””, “keywords”=\>“singing xylophone”},  
“lesson\_id”=\>“5422-1-Variety-test”, “\_method”=\>“put”,  
“action”=\>“update”, “notes”=\>””, “activities”=\>"",  
“controller”=\>“plans”, “properties”=\>[“1112”, “1125”, “1126”],  
“groupings”=\>""}
