← Back

Copy Values From Production Rails Console

Sometimes there is a need to copy long values from production rails console to local rails console.

By long values I mean for example long hashes that span multiple screens.

For that I use screen’s copy-paste functionality.

Long hashes that span multiple screens can be copied from one window to another and rails console will recognize them well.

Why did I need a separate page for this? There are often very long hashes that may also include long base64-represented values which, when I look at, I'm afraid that they're going to get malformed during GNU Screen's copy and paste function because of an unexpected newline character slipping into the copied area. So this small article is a manifestation of the fact that it does not happen and therefore it's safe to use the copy function.