Travel, Code, and Engineering

Tag: coding


How to Fix Access-Control-Allow-Origin Error in Ruby on Rails

If you're trying to make an API to allow your site's content to be accessible via JavaScript from another site, you've probably run into the error "XMLHttpRequest cannot load XXX. No...


What's Using All the Memory on My Production Ruby on Rails Server?

Are you running a Ruby on Rails web app? If you are, you're probably going to run into memory problems sooner or later. In that case, you're going to want to know how to pinpoint your...


Don't Install the Spring Gem on Your Production Rails Server

This is a PSA about Spring and Ruby on Rails. Don't know what Spring is? Jump to the bottom of this article.


How to Get Amazon ASINs from Amazon URLs in Ruby

Amazon identifies every product for sale with a ten-digit alphanumeric code called an ASIN (Amazon Standard Identification Number). Whenever you visit a product page on Amazon, these number is...


Check Ruby on Rails's Load Path

Sometimes you need to add some special functions to your Ruby on Rails app, and you want these functions to be available everywhere in your application. In cases like these, you can put your code...