Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...
I am talking about development speed. When your application starts growing and you start adding gems, it starts to take...
The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...
The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...
When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...
JavaScript engines such as Google’s V8 (Chrome, Node) are specifically designed for the fast execution of large JavaScript applications...
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
Having your site run on SSL is worthless when you include content over an unsafe connection (HTTP).
ActiveModel::Errors is used to handle validation errors on Rails objects. If you inspect an instance, it feels like a...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...
The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END
Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...
Chances are, something in your project uses the mathn library, which is known to cause infinite loops when rendering the...
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...
If a customer calls and tells you that she cannot see some content of her website beware of the following...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579