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.
Charge Customers Later Using Stripe With Ruby on Rails
Confused about how to integrate STRIPE for online payments? Here’s a quick guide that outlines the process in a few simple steps -
Unusual ways to call a method
rubycademy.com/method-calls
11 Most Asked Questions About RuboCop
Check out these 11 most asked questions about RuboCop.
Behind-the-scenes tour of a Rails app running for 10+ years
Are you ever curious about how other people structure their Rails apps? What their code quality is like? What pragmatic decisions they make? In this screencast, I give a guided tour of Oxbridge Notes, my little ruby on rails baby (~14k LOC) [more inside]
Make API payloads generic
Just published the sixth chapter of the API-only ruby on rails course: Introduce renderer module. This time, we generalized API payloads with adding data and metadata information of the resources.
Make Voice calls through Ruby on Rails Web applications
Make Voice calls through Ruby on Rails Web applications
https://github.com/AndyObtiva/puts_debuggerer
Debuggers are great! They help us troubleshoot complicated programming problems by inspecting values produced by code, line by line. They are invaluable when trying to understand what is going on in a large application composed of thousands or millions of lines of code. [more inside]
If you don't know why you can't directly inherit from ActiveRecord::Migration
rubycademy.com/inherited-hook-method
Shared contexts in RSpec
On a recent project, I experimented with shared contexts to see if they could reduce boilerplate in the tests and was generally satisfied with the results, but also found a sneaky gotcha. [more inside]
The different ways to generate symbol with special characters
rubycademy.com/symbol-and-special-characters
Rails and React: Fixing "Module not found" errors for JSX files
We’re just getting started with Webpacker and React in our Rails apps. Recently, we hit a problem getting started with React on Rails giving Module not found errors for JSX files. This is a brief post on the issue and what we did to fix it: https://chrisblunt.com/rails-and-react-fixing-module-not-found-errors-for-jsx-files/
Why doesn't Webpacker use my test config when running Rails tests?
When running Rails system or integration tests, you might be surprised to learn that Webpacker will load your development webpack config. What’s the deal?
Ruby Method Overloading
A hack to add Method Overloading feature to Ruby.
To Call or not Callback
This is the question for ActiveRecord callbacks,
How To Extend Float Class In Ruby
Sometimes we need to customize Ruby classes. I am going to introduce how to extend the Ruby Float class in simple steps.
New Truemail 📨 web API client library for Ruby
New version of Truemail web API client has been released :rocket::
tty-prompt v0.22.0 release with many new features
The latest tty-prompt release packs many new features that further enhance prompting users for input. Conversion of input into Array or Hash objects, :quiet option to silence output and allow for dynamic menus, :show_help option to control help display (on_start/always/never), shortcuts for selecting of all/reverse choices in multi-select prompt and much more. Enjoy!
Installing Omnivore API in Ruby on Rails Application
Integrate Omnivore API in Ruby on Rails development to access every action and detail in PoS transactions. Here’s how to install Omnivore API in your Ruby on Rails project.
Integration Testing Best Practices (aka how to sleep at night)
In this video, I reflect back on 10-years of integration testing my Ruby on Rails app using rack-test and Selenium and distill what’s important in reducing brittleness, improving test speed, and getting the most bang for your testing buck:
Introduce renderer module
Just published the fifth chapter of the API-only ruby on rails course: Introduce renderer module [more inside]