Advanced Search with Ransack
In this tutorial we will explore how to add complex search functionality into your Rails application. This task will be made easier by the awesome Ransack Ruby gem. Ransack provides excellent helpers and builders for handling advanced searches on your models. It has some really powerful features available out of the box without writing a lot of code, such as sorting or conditional search.
Fun with Robots, Lita, and HipChat
Semi-Relational Data Modeling with Redis and Ohm
RailsBricks: Start Faster with Rails
Delayed Job Best Practices
Rails Disco: Get Down with Event Sourcing
Build Great APIS with Grape
LevelDB in Ruby
Automatically Reload All the Things with Guard
Go Global with Rails and I18n
Create a Ruby Gem for a jQuery Plugin: Advanced
Create a Ruby Gem for a jQuery Plugin: Basics
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
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.
Fun Sending Mail on Rails
Integrate Braintree Payments into Rails
Breadcrumbs on Rails with Gretel
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.