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.
ActiveRecord::MTI 0.3.0-RC3
Unleash the power of true (multi) table inheritance in your Rails (or specifically ActiveRecord) projects! Requires PostgreSQL database. ActiveRecord::MTI strives to provide a seamless extension of ActiveRecord, allowing you to leverage a more powerful form of table inheritance. Version 0.3.0 is slated for release sometime this week or next.
Where do Rubyists go? (Survey about programming languages)
I created a survey to see which programming languages Ruby programmers are interested in. It already has over 500 responses but if your input isn’t in there please consider adding it (also if you haven’t really looked at other languages). Results will be published ~early 2018. Thanks!
Cost of stubs in tests
Definitely, there are some benefits of using stubs, but we need to be aware of their cost.
Day 11 - Ruby Advent Calendar '17 - @jekyll_octopod - Publish your own talk shows
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 11 with jekyll-octopod - Publish your own radio talk shows. Podcast extension for building (static) websites with Jekyll; incl. podcast web feeds with RSS enclosures and JSON Feed attachments in the OGG, MP3 or M4A audio formats. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
The Real Use of Ruby Singleton Classes
Most experienced Ruby developers have come across the concept of metaclasses or singleton classes. Still this seems to be something obscure and rarely used, even though we all benefit from singleton classes every day. Read here about their real use.
AdequateErrors - Overcoming limitation of Rails model errors API
Rails errors API can be tedious at times, and in this blog post I list these with examples, and show how AdequateErrors gem can help in these scenarios.
Day 10 - Ruby Advent Calendar '17 - feedtxt - Read Feed.TXT - Feeds in Text (Unicode)
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 10 with feedtxt - - Read Feed.TXT - feeds in text (unicode). Publish & share posts, articles, podcasts, ‘n’ more. Web Feeds! Web Feeds! Web Feeds! The future of online news - the future of Facebook & Co. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 9 - Ruby Advent Calendar '17 - hexapdf - Read and write PDF documents; merge,...
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 9 with hexapdf - Read and write PDF documents; start from zero or merge, extract, optimize and much more. Incl. many examples to get you started. If you work with PDFs give hexapdf - a versatile portable document format (PDF) creation and manipulation library and command line tool - a try. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 8 - Ruby Advent Calendar '17 - feedparser - Read web feeds in XML, JSON, TXT, etc
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 8 with feedparser - Read web feeds in XML, HTML, JSON, TXT and more. Build your own news reader from scratch in twenty lines. All about the future of online news - the future of Facebook & Co - Web Feeds! Web Feeds! Web Feeds! Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
🔐 Redmine Security Scanner
Are you running Redmine? When’s the last time you updated it? 👀 Find out whether your installation is still secure and what you can do to harden your setup with this simple tool: 👉 Redmine Security Scanner
Upgrade Rails Guide: From Rails 4.0 to Rails 4.1
Now that Rails 5.2 Beta is out, it might be a good time to upgrade from Rails 4.0 to Rails 4.1: https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-4-0-to-4-1.html
Bindings in Ruby – Behind the Magic of Blocks
Why block can see local variables defined before him? Why can it change them? What kind of sorcery is this? I will try to answer that question in this post. We will see examples of blocks and hidden secret hero behind the magic – binding object. [more inside]
Build Your Own Blockchains in Ruby from Zero (Scratch) - Vienna.rb Talk Notes
Hello, for a change something different (from the Ruby Advent Calendar 2017 ;-)) - yesterday’s Vienna.rb talk notes about Blockchain! Blockchain! Blockchain! - Build Your Own Blockchains in Ruby from Zero (Scratch), Yes, you can in 20 lines or ruby with proof-of-work crypto hashing and more. Talk notes incl. breaking news about CryptoKitties (Yes, Cute Little Cartoon Cats) on the Blockchain - the latest (and greatest) investment opportunity. Join the movement and revolutionize the world one block at a time. Cheers.
Day 7 - Ruby Advent Calendar '17 - webservice - Script HTTP JSON APIs (Microservices)
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 7 with webservice - Script HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post methods with Mustermann 1.0 route / url pattern matching. Load (micro) web services at-runtime using Webservice.load_file. Get a free wiener lager, welsh red ale or kriek lambic beer delivered to your home (computer) in JSON and much much more. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
firebase_cloud_messenger Open-Source Gem Released
Google’s Firebase Cloud Messenger lets you send push notifications to android, iOS, and browsers for free, and firebase_cloud_messenger makes working with their most up-to-date and secure api easy.
How Teams Get Microservices Wrong From the Start
How Teams Get Microservices Wrong From the Start - There’s a lot of ambiguity and debate about what microservices are so we wrote this article to help you ensure your team starts off on the right foot with microservices.
Talking to ActionCable without Rails
ActionCable makes it easy to work with WebSockets from Rails apps, but what about connecting a plain React frontend to a Rails API backend? [more inside]
How to execute shell commands with TTY::Command
Learn how to execute shell commands with the tty-command gem, an alternative to Ruby’s backticks or Open3 module: https://readysteadycode.com/howto-execute-shell-commands-with-ruby-tty-command
Day 6 - Ruby Advent Calendar '17 - almost-sinatra - Build Your Own Webframework
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 6 with almost-sinatra - Build your own webframework from scratch with Rack and Tilt in less than ten lines. The legendary mega hack by Konstantin Haase - six lines of Almost Sinatra now “unobfuscated” and bundled up for easy (re)use and studying. Got inspired? Build your own webframework. New York, New York, Nancy, Cuba, Roda, and many more. Yes, you can! Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Exceptional Creatures: Ruby's ArgumentError
Ruby’s ArgumentError is an opinionated beast that makes its discontent known when you call a method with incorrect arguments.
Why Funding Open Source is Hard
I wanted to share this here. I’m a ruby developer and Code Sponsor supported many ruby projects. Hopefully, we can learn from this as a community. [more inside]
Modern Front-end in Rails. Part 1 of a three-part tutorial
An opinionated guide by Andy Barnov and Alexey Plutalov to modern, modular, component-based front-end in Rails 5.1+. No front-end frameworks involved. Follow our three-part tutorial to learn the bare minimum of up-to-date front-end techniques by following an example and finally make sense of it all. Part 1: goodbye Asset Pipeline, code organization, linting.