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.
Practical Computer Science in Ruby: Using Stacks to Solve Problems
Learn how to apply a simple (but powerful) computer science concept to solve problems with Ruby.
The Cracking Monolith: The Forces That Call for Microservices
A majestic monolith works in most cases. But when your Rails app grows multiple apps within, and meets high traffic with large volumes of data — that’s the right time to start thinking about microservices. Read more.
Let’s make Ruby app servers & operations better! With your feedback.
I am Hongli Lai, developer of the Phusion Passenger app server. We think the state of Ruby application delivery & operations can be made easier, faster, more reliable, and better. So we’ve embarked on a mission to do precisely just this (and to improve Passenger while we’re at it). [more inside]
Select or Create Field with Selectize.js
Sometimes you need users to create associated records while filling out a form but it’s hard to do with the built-in Rails forms. Selectize.js gives us a great option for building a select or create field all-in-one to choose associated records or create new ones when filling out a form. https://gorails.com/episodes/select-or-create-with-selectize-js
Rack-reqorder: Metrics, exception monitoring and request/response recording for rack
rack-reqorder is a middleware that sits in rack and allows you to: [more inside]
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. [more inside]
[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. [more inside]
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. [more inside]
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.