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.
Stripe webhooks in Connect applications
I have recently implemented Stripe webhook integration for my application that uses Stripe Connect with managed accounts. As it turned out, the process for working with webhook events in Connect applications is slightly different, and there is no official documentation or public blog posts that cover these nuances. This short write-up is meant to bridge this gap
Reliable notifications between two apps or microservices
Let’s say you have 2 systems or microservices (or processes). And one of them needs to be notified when something happened in another one. You might believe it is not so hard unless you start thinking about networking, reliability, and consistency. [more inside]
TheOpenCMS. Weekly report #5
Hi there! The Adventure of TheOpenCMS project continues. Changelog vol. 5
Automatically generate the Devise acceptance tests
devise-specs is a Rails generator that adds the Devise authentication acceptance tests when you run the devise generator.
Switch users with UserSwitch
UserSwitch is a Rails plugin for switching between commonly used roles and users. It’s particularly useful for development and staging environments when you often need to switch between various accounts. It saves you from the hassle of logging in or out.
Unit testing with VCR
In this blog post, I’ll show you a simple way to test applications that perform external service requests, in Ruby, using the VCR gem! Enjoy:
New Horizons - Build Your Own (Static) Planet News Site w/ Pluto (and Ruby)
Hello, from yesterday’s Vienna.rb meetup - all about reading web feeds with ruby and building your own planet news sites. Browse the talk notes titled New Horizons - Build Your Own (Static) Planet News Site w/ Pluto (and Ruby) or the slide deck. Bonus: Includes pluto trivia quizes. Happy planet. Cheers. PS: Build the next Planet Ruby - anyone?
Protect Your Rails Apps from Bots, Scrappers and DDoS attacks
No gems required. This tutorial will walk you through using AWS WAF with your Rails apps. Protect Your Rails Apps from Bots, Scrappers and DDoS attacks
What is the best strategy for encrypting files in Ruby
I am going to show you how the encryption flow actually works using some Ruby code. We will use 4096-bit key lengths and SHA-256 as our digest function.
Conditional Eager Loading in Rails
Find out how you can filter eager loaded associations in Rails.
Hanami v1.0.0
Production ready, new team members, new governance for the project.
Adding rubocop to a legacy project
Adding rubocop to an existing legacy project can be done in 20 minutes with some iterations and use of autogeneration of a .rubocop_todo.yml.
Fae - CMS for Rails. For Reals.
We recently open sourced a Rails CMS engine that we’ve been developing and using internally for a couple years. Check it out!
Versioning a Rails API
Introducing versions into an API application doesn’t have to be difficult or divisive. If you understand why you might need it and how best to implement it, the process can be done before you know it.
Testing a New Page Loaded (or not) with Capybara
Mmm, you probably won’t need this. Its a replace_page matcher for testing that a page was (or was not) reloaded and have no other way of checking
5 Tips for More Effective Capybara Tests
I wrote an article about some handy features in Capybara to help people write better tests. Here’s the link.
Importing invalid legacy data with Rails
I just wrote a new blog post on my recent experience in importing legacy data with Rails.
Tracepoint and Array#size
Notes about some interesting behaviors around Tracepoint and Array#size.
How I wrote the http-client for mruby
Hi guys. This is article about how I wrote the http-client for mruby
Popular Job Interview Questions for Ruby on Rails Position
Here you can find the list of popular job interview questions for Ruby on Rails Developer position with ready answers: Hope this will help someone in getting his dream job!
Nondeterministic Turing Machines
Create and run a nondeterministic Turing machine using NTM simulator.
tty-progressbar v0.11.0
The newest release of tty-progressbar fixes byte formatting tokens and extends available byte sizes.
New Pluto Planet Guide (Book Ed.) - Free Planet (Static) Site Generator in Ruby:
Hello, I’ve put together a new Pluto Planet Guide (Book Edition). What’s Pluto? Pluto is a free planet (static) site generator in ruby that lets you auto-build web pages from published feeds w/ embedded ruby (ERB) templates / themes and much more. For a real-world example of Pluto live in action, see the OpenStreetMap Blogs - (setup/config/templates) Cheers.