Put the line below in the respective env.rb file to make your action controllers raise an ActionController::UnpermittedParameters error when...
You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...
Rails default config uses the ActiveSupport::Cache::NullStore and disables controller caching for all environments except production: config.action_controller.perform_caching = false...
If you use the Better Errors gem, you will sometimes notice that it can be very slow. This is because...
These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot
This is useful if, for example, you want to use a background-image that has to scale with the width...
Typhoeus has a different way of representing array params in a get request than RestClient. Typhoeus: http://example.com/?foo[0]=1&foo[1]=2&foo[2]=3
By default Middleman generates files with a .html extension. Because of this all your URLs end in /foo.html instead of...
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
When you load a dump for development, records may reference images that are not available on your machine.
Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...
Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...
We generally use multiple application servers (at least two) and you have to search on all of them if you...
We have projects that have been developed using many different versions of Ruby. Since we do not want to...
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...