Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...

makandra dev
semaphoreci.com

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...

iana.org

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...

github.com

You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...

help.github.com

Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...

patrickmarabeas.github.io

Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...

If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...

To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

makandra dev

Obviously, you only can do this for your own sites. You need to authenticate a domain you want to remove...

guides.rubyonrails.org

When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...

If your angular app is not served on /, but on a different url (say /admin), links generated with ui-router...

markembling.info

Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be...

When navigating back to a page that was received from a POST request, undesired side effects may happen. Therefore, modern...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...

github.com

Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...

makandra dev
api.rubyonrails.org

Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...

The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...