-
How to Test Rails Models with Minitest
Minitest is a testing suite for Ruby. It provides a complete suite of testing facilities supporting test-driven development (TDD), behavior-driven development (BDD), mocking, and benchmarking. It's small, fast, and it aims to make tests clean and readable.
-
Active Record - brief introduction for beginners
When creating an app in Ruby on Rails, from the very beginning, on every single step of your developer's journey, you're going to use ActiveRecord methods. Lots of them, and frankly speaking, it's good to know them well (if not by heart).
-
Stripe Checkout and Rails
Get up and running with Checkout and Ruby on Rails in no time at all! If you need help after reading this, check out our answers to common questions or chat live with other developers in #stripe on freenode.
-
RSpec::Core Cheat Sheet
RSpec is a mature, feature-packed testing framework, but the documentation can be difficult to navigate.The official documentation is written as a set of Cucumber tests within Relish. It’s very comprehensive, but also quite sparse, and Cucumber tests are kind of unnatural to read.
-
The 10 Most Common Mistakes That Rails Developers Make
Ruby on Rails (“Rails”) is a popular open source framework, based on the Ruby programming language that strives to simplify and streamline the web application development process.
-
Generating PDFs From HTML With Rails
There are many ways to generate PDFs in Ruby and Rails. Chances are that you are already familiar with HTML and CSS, so we are going to use PDFKit to generate PDF files using HTML from standard Rails view and style code.
-
Creating staging and other environments in Rails
Ruby on Rails come with three environments by default – development, testing and production. But sooner or later one has a need for staging environment. And don’t get me wrong, you can (or should?) use the production settings there...
-
Python Django vs Ruby on Rails
Choosing the right framework in the developers’ world sometimes is similar to choosing between Ford Mustang and Chevrolet Camaro in the automotive world. The same purpose, parity of characteristics, lots of features, etc. This list tends to be endless, but, let’s make things a bit clearer by comparing these frameworks step by step.
-
HOWTO scrape websites with Ruby & Watir
Web scraping is an approach for extracting data from websites that don’t have an API. Web scraping code is inherently “brittle” (prone to breaking over time due to changes in the website content and structure), but it’s a flexible technique with a broad range of uses.
-
New framework defaults in Rails 5 to make upgrade easier
When a new version of Rails comes out, one of the pain points is upgrading existing apps to the latest version.