Category Archives: Ruby
Ruby Logging: Print, Puts, P
Rails Model: has_many And belongs_to
Goal: structuring multiple Birds within each Nest, so that we could find all birds within a specific nest with routes such as
Rails: Add Column Array in Database
Say we want to add a column named
selected to our
user model. Our
selected would be an array of integers.
DigitalOcean: How To Create A Rails App with Git Auto Deploy
What we want to achieve:
- one click create a working version of rails project on DigitalOcean
- set up a local working version of the project
- set up remote & local git repo so we could push to update remote rails project folder
- and deploy automatically with push
Cleaning Up Book Records Under Kindle Documents Folder
With the amount of documents that go in and out of my kindle, the documents folder is constantly left in a rumpled state–the book record
*.sdr files scatter all over the place. I wonder why the kindle system can’t just delete the record file when the book is deleted?
Finally I decided that I’ve had enough of deleting and wrote a ruby script to deal with the mess.