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.
Day 13 - Ruby Advent Calendar '17 - schemadoc - Auto-gen your database schema docu
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 13 with schemadoc - Auto-generate your database schema documentation for tables, columns, etc; use your own (static) jekyll themes; connects w/ ActiveRecord (SQLite, PostgreSQL, etc.) Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Getting Started with Metrics in Rails
If you’re anything like me, you’re new to the metrics scene. You hear its siren call and you want to find out more, but you don’t know where to start. This guide is where you want to get started with Rails + Metrics: https://www.influxdata.com/blog/metrics-for-true-beginners/
Ruby Is Hiding Errors From You!
Did you know that Ruby hides some exceptions from you capturing them silently? Learn more in my new article: http://www.rubyguides.com/2017/12/ruby-hiding-errors/
Reimagining 2D graphics and game development with Ruby
Check out my RubyConf 2017 talk, “Reimagining 2D graphics and game development with Ruby,” and learn how you can build 2D apps with Ruby using MRI, mruby, and Opal (slides, transcript, and links also here): blacktm.com/rubyconf
Modern Front-end in Rails. Part 2
Part 2 (out of 3) of already much-discussed opinionated guide to modern, modular, component-based front-end in Rails 5.1+ with no front-end frameworks involved. This part describes building a scaffold for a simple chat app from JS/CSS/ERB components.
Surprises with Nested Transactions, Rollbacks and ActiveRecord
Wrote up a blog post about how ActiveRecord nested transactions together with rollbacks deeply surprised and confused me along with all the people I showed it to.
Top 9 Ruby Articles to Improve Your Web Development
https://blog.rubyroidlabs.com/2017/12/rails-bundle/ Save time and boost your skills with this bundle of articles proven by Ruby community.
Detect bottlenecks before your code is in production
RorVsWild released a new gem version (1.3.0) which allows you to profile requests directly from your developement environnment (à la rack-mini-profiler): https://github.com/BaseSecrete/rorvswild
Day 12 - Ruby Advent Calendar '17 - pluto - Auto-build web pages from web feeds
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 12 with pluto - Auto-build web pages from published web feeds. Planet (static) website generator. 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!
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.