Understanding SQL Through Rails
What You Don’t Get With ActiveJob
Write Modular RSpec
Ratyrate: Add Rating to Your Rails App
This tutorial explores how to add rating functionality to a Rails application. It will go through some of the more popular Ruby gems that provide such functionality, as well as how to implement rating from scratch. We will use the same application used in the the Online store article By Karim El Hussieny, in which the basic application creation process is explained in detail. Please refer to that post to learn how Karim scaffolded and styled the basic application.
Increase Engagement with Merit and Gamification
Ruby Benchmarking Lessons Learned
Testing Page Objects with SitePrism
In this article, I am going to talk about SitePrism, a testing tool that I have recently learned about and been enjoying. Here is a description of SitePrism from its' creators:
SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for use with Capybara in automated acceptance testing.
Before we go into SitePrism, let's talk about page objects, because page objects are central to understanding the philosophy behind SitePrism.
Functional Programming: Pure Functions
Realtime Mini-Chat with Rails and Faye
Sorting Algorithms in Ruby
Functional Programming in Ruby: Value Objects
Mini-Chat with Rails
Fun Sending Mail on Rails
Integrate Braintree Payments into Rails
All Rubyists Love Logging
Breadcrumbs on Rails with Gretel
Stress Testing with Loader.io
The Basics of Capybara and Improving Your Tests
Capybara is a web-based automation framework used for creating functional tests that simulate how users would interact with your application. Today, there are many alternatives for web-based automation tools, such as Selenium, Watir, Capybara, etc. All of these tools have the same purpose, but there are slight differences that make each of them more or less suitable.
The main characteristic that developers are aiming for is the ability to have tests that are modular, easy to write, and easy to maintain. This is especially true in Agile/TDD environments where writing tests is second nature. These tests are expected to give good and fast feedback on code quality. As time goes by, the number of tests grows and it can be a real nightmare to maintain the tests, especially when the tests are not modular and simple enough.
In this tutorial, I will describe some of Capybara key features and explain why it could be your tool of choice for developing web-based automated tests.
Use Google Maps with Rails
Maps are the way to navigate the world. They give the ability to inspect every single location on Earth, opening the way to services like routing and soil composition. In this article, I will go through the Google Maps API (and some alternatives) and integrate it with Rails.
Uploading Videos to YouTube with Rails
Full-Text Search in Rails with ElasticSearch
In this article you will learn how to integrate ElasticSearch into a Rails application.
What is Full Text Search?
A full-text search engine examines all of the words in every stored document as it tries to match search criteria (text specified by a user) wikipedia. For example, if you want to find articles that talk about Rails, you might search using the term "rails". If you don't have a special indexing technique, it means fully scanning all records to find matches, which will be extremely inefficient. One way to solve this is an "inverted index" that maps the words in the content of all records to its location in the database.