Category Archives: Ruby

heroku add second email

create new public/private key for new email as follows 1) ssh-keygen -t rsa -C “mvjohn@klairvoynat.com” 2) provide new file name in which to save the key (/home/.ssh/seckey) 3) Then add your new key to the ssh-agent:- ssh-add ~/.ssh/seckey 4) Then … Continue reading

Posted in ROR, Ruby, ruby on rails, web development | Tagged , | Leave a comment

Ruby Tips

Inject http://blog.flvorful.com/2010/01/24/a-simple-pattern-for-rubys-inject-method http://stackoverflow.com/questions/3455627/how-does-this-ruby-injection-magic-work Exclamation marks (!) with functions In general, methods that end in ! indicate that the method will modify the object it’s called on. Ruby calls these “dangerous methods” because they change state that someone else might have … Continue reading

Posted in Ruby | Tagged | Leave a comment