Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class

bibwild.wordpress.com

While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

Many of our clients can't or don't want to design their user interfaces. In the absence of a...

makandra Curriculum

Your MovieDB gained traction and is now a popular tool among cineasts. This comes with a downside: You noticed a...

For each movie in MovieDB, we want to track which other movie it was inspired by. For...

We use Selenium WebDriver integrated with Cucumber/Capybara for full-stack integration testing. Try and use it Your forked MovieDB should...

makandra Curriculum

Built-in matchers Get an overview of all the matchers that are built into RSpec. Play with some of...

Ruby has Enumerable.find(&block), which returns the first item in the collection for which the block evaluates to true.

To update your Rubygems to the latest available version, type the following: gem update --system Note that you have a...

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

makandra Curriculum

What is rake good for? Take a look at some of the Rake tasks that Rails gives you (rake...

Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...

In a web application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails...

To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:

There is no single place to look up documentation for our stack. This card includes some hints where you can...

makandra Curriculum

makandra's development process Learn about our process. The squares represent the state of the issue in Linear:

github.com

MarcoPolo shows your app name and environment in your console prompt so you don't accidentally break production Officially supporting...

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

Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters: