To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...
As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...
While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...
I recommend install Node.js using nvm. This way you can have multiple Node versions in your ~/.nvm. You also won...
Ruby has Enumerable.find(&block), which returns the first item in the collection for which the block evaluates to true.
You can include files from app/assets or from the public folder with javascript_include_tag. The subtle difference that tells...
A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...
tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...
Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger
CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...
In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...
In my RubyMine I have recorded two macros for debugging and linked them to some keyboard shortcuts. Since I believe...
Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to...
There is no such thing as a "default order" of rows in database tables. For instance, when you paginate a...
Since version 2.6 exception notifier distinguishes between foreground and background sections. The reason is that with background jobs (e.g. methods...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...
You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...
When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...