How to Setup Rails Environment on Mac OS X

All of these steps need to be performed from the Mac terminal. Install Homebrew Paste these on the mac terminal and follow further instructions ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Install git brew install git Install RVM \curl -sSL https://get.rvm.io | bash…

HTTP Status Codes

HTTP has many status codes and in general is divided into 5 categories: 1xx - informational 2xx - request successful 3xx - redirect 4xx - request error from the client side (i.e., invalid parameter) 5xx - request error from the server/network side which is outside of the client…

Ruby on Rails: Running a Single Cucumber Feature

This occurs to me from time to time and I hope it will be handy to other developers, too. To run a single cucumber feature, specify the feature name using FEATURE environment variable. cucumber -r features features/adding_products.feature The reason we use -r features when running a single…