Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby objects to go: Copy and paste freely across consoles

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 copyrb.gemspec
README.rdoc

copyrb

Ruby objects to go. Copy and paste freely across terminals. This is very useful if you want to transfer ActiveRecord objects from one Rails environment to another (to experiment with production data for example).

usage

  • terminal 1:

require 'copyrb'

a = MyActiveRecord.last

copy a

  • terminal 2:

require 'copyrb'

paste #=> returns a, now you can do a.save or whatever!

  • If you don't want to require the gem every time, you can add the following lines to .irbrc

require 'rubygems'

require 'copyrb'

Copyright

Copyright © 2011 Milan Dobrota. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.