Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

makandra dev

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

guides.rubyonrails.org

Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to...

postgresql.org

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

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