The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Validate email address against common typos and burners
A gem that backs a “Did you mean john.doe@gmail.com ?” feature for your registration forms. For common gmai.com hotmil.com yahou.fr and alike typos. Detects burner email addresses too.
Maintaining Active Record Associations with Edit Form Partials
Maintaining Active Record Associations with Edit Form Partials - or “How to Avoid Over-complicating Your Solution”. Read The Entire Article Here
4 Ideas for Improving Testability in Web Apps
Here I share some of my programming tactics for achieving testability in Rails apps. The strategies include: Explanatory (not exploratory) dry runs, Backdoors, and Interface Hooks. Read more
[Screencast] Intro to Docker on Windows
Developing a Ruby on Rails application on Windows can be difficult, but doesn’t have to be with Docker. Learn how to use Docker to create isolated containers and get them to talk with the Rails app and passed through to the local computer. https://www.driftingruby.com/episodes/intro-to-docker-on-windows
Devise with OmniAuth for Single and Multiple Models
In this post we’ll describe on how to use OmniAuth in combination with Rails and Devise to support authentication of existing and new users without asking for email/password combinations.
tty-prompt with line editing & history buffer
The newest tty-prompt comes with line editing and history buffer support. It also adds new multiline prompt for gathering, you guessed it, multiline input. Also, it sports brand new keypress prompt that pauses for key press with additional timeout option. Enjoy!
OptionParser With Commands
How to extend Ruby OptionParser, so that it can also parse commands from command line.
TheOpenCMS. Weekly report #2
Hi there! There is a weekly report about my progress on my CMS project Changelog vol. 2
HexaPDF 0.4.0
Composite font support and many CLI enhancements -
Correios CEP gem v0.6.3
Using latest Ox version and some performance improvements regarding strings. Read more
Hanami v1.0.0.beta3
Small bug fixes, deprecated API removal, new input helpers for forms.
Adding a User Index In Rails with Devise
As the application administrator I want to be able to view who all has signed up for accounts in my application and the last time they signed in. This view and functionality isn’t built into devise, so we’re going to be building it Click here for full article
WebRTC Opentok in Ruby On Rails for Text chat
WebRTC Opentok in Ruby On Rails for Text chat:
How to setup and deploy a Rails 5 app on AWS ElasticBeanstalk with PostgreSQL, Redis
Deploying a Rails app can be a somewhat daunting task to get set up right on new applications, even for seasoned Rails developers. While Capistrano has been a main player in Rails app deployments, it seems to have fallen somewhat out of favor as load balancers and computing servers have gained popularity. Thankfully, AWS(Amazon Web Services) has created a tool for deploying and scaling Rails web application in their eco-system. Read more
Embracing Change: Rails 5.1 Adopts Yarn, Webpack, and the JS Ecosystem
Many naysayers would have you believe Rails is dead. Don’t believe the hype. With the coming of Rails 5.1 and its embrace of the JS ecosytem, Rails is solidifying its position as the king of web frameworks. read on
Rails - Organizing the Index Page into Topics
All of the companies in my custom CRM have a topic associated with them (“Architecture”, “Outdoor”, etc.) Several users want to be able to view a list of companies under each category before they begin contacting their leads so today we’ll set up an option on our index page to enable that action. Read the Full Tutorial Here
Bots On Rails: part two.
Second part of building bots on rails tutorial, in this part we will build onboarding flow and build our bot data model leveraging rails awesomeness.
Handling request cache in Ruby
Handling HTTP cache is one of the most important aspects when you need to scale a web application. This post explains how to handle back-end HTTP requests cache in Ruby apps to improve performance.
Characteristics
Need to do low-level string encoding work? Meet characteristics, a Ruby library that tells you some basic info about single codepoints, like: is it assigned? is it a control character? is it a whitespace? Works with Unicode and single byte based encodings.
Best Ruby / Ruby on Rails books
List of 20 best Ruby / Ruby on Rails books to read mentioned on stackoverflow.com
RuCaptcha - The best Captcha solution ever.
This is a Captcha gem for Rails Applications. It drawing captcha image with C code. That means you don’t need ImageMagick or RMagick any more. And it very fast. Read more
How to Sort Arrays in Ruby - BR
Draft Blog Posts in Middleman
We love the static site generator Middleman and used it to build RubyLetter. But Middleman doesn’t come with a drafts folder like Jekyll does. In this blog post, we walk through how to simulate Jekyll’s _drafts folder in Middleman. http://www.rubyletter.com/blog/2017/03/15/middleman-blog-drafts.html
Dealing with Test Leakage
Writing tests is always a bit finicky. That said, these frustrations grow to their awful peak whenever your suite of tests turns up indeterminate results. The classic example is when one of your normally passing tests randomly fails—even though the code hasn’t changed one iota. Read more