rubydoc.info

Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...

Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power

In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...

smartinez87.github.io

The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...

...}. These options should be helpful...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev
looah.com

A great and enjoyable introduction into the concept of the web and about what HTTP was designed for. The original...

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...

Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...

The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...

In order to clone a git repository including all branches and tags you need to use two parameters when cloning...

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...

Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...

When HTTP clients make an request they can define which response formats they can process. They do it by adding...

Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...

Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...