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.
Method Arguments in Ruby: Part I
In this article we’re going to explore the following topics:
Simple gem with a list of professions
Profession is a simple gem with a list of professions (over 1000), for matching and parsing professions in a large body of text. For instance, this was helpful for parsing out Wikipedia articles for a little school project for my kids. Feel free to add more occupations to the list.
How to create a video upload service in Rails - Part I
I’ve finally gotten around to bringing my blog back to life. I wanted to start writing a series piggy backing on a small project I was doing in my spare time, so I started with the first post, which starts off with a basic Rails site capable of uploading and watching videos. Simple stuff. I will continue to expand on this, adding some more fun features. Hopefully its enjoyable. [more inside]
Bits & Blocks Press Bookshelf - Build (Online) Books w/ Jekyll and Octobook Themes
Hello, using jekyll (and github pages) with (remote) octobook themes you can build (online) books from your text w/ markdown formatting. See the latest real-world open-source / open-access example - Bits & Blocks Press Bookshelf (Source) - Free Books about Bitcoins, Blockchains, Contract Scripts ‘n’ More. Happy publishing w/ Jekyll and Octobook themes.
Rails Testing Antipatterns: Models
Learn about common antipatterns in writing tests for Rails applications when testing models: https://semaphoreci.com/blog/2014/01/21/rails-testing-antipatterns-models.html
How to Use The Strategy Design Pattern in Ruby
Make your classes more flexible with the strategy design pattern! You’ll learn how to use it & why in this new article: https://www.rubyguides.com/2018/05/strategy-design-pattern-in-ruby/
records_count gem
useful gem for development https://github.com/igorkasyanchuk/records_count (see how many records you loading from DB without hacks)
Multiple Ways to Change Database Column in Rails
There are several, different approaches to changing the database column in Rails. The article covers changing the column name and the column type, as well as changing the column with the type conversion. Read More
Loading a File in Ruby
The Kernel#load method loads and executes the file passed as parameter. [more inside]
Email with Amazon SES from Rails on EC2
Deliver email with Amazon SES from a Ruby on Rails app hosted on EC2. [more inside]
Passenger app server 5.3.0 released for Ruby, Python & Node.js
Version 5.3.0 of the Passenger application server released, introducing a big overhaul of the error reporting, Ubuntu “Bionic” (18.04) packages, as well as support for the latest stable Nginx (1.14.0): https://blog.phusion.nl/2018/05/09/passenger-5-3-0/
Recent Updates in RubyData
I described the four recent activities in data science field, including SciRuby’s GSoC, mxnet gem, and talks in RubyKaigi 2018. [more inside]
Monitoring GitHub issue tickets through automated tagging
GitHub tagging through Support Central allows us to get a quick overview of which tickets are potentially blocked, rather than us periodically scrolling through the list and re-reading all the tickets: https://blog.phusion.nl/2018/05/09/open-sourcing-phusions-customer-support-product/
How To Avoid The Ruby Class Variable Problem
The way Ruby resolves class variables is not very intuitive and in my opinion, it’s one of the few areas where it breaks the principle of least surprise. [more inside]
Five microservice testing strategies for startups
Testing Microservices is hard, but not impossible. Learn 5 ways your team can approach it.
How to use coding challenges with your interview process
For CTOs designing coding challenges to hire promising programmers, this article provides strategies as well as pitfalls to avoid during the coding challenge portion of the process.
First Steps with Sinatra as a Rails Developer - Part 2
The second part of a quick guide how to build a full-stack app in Sinatra from Rails developer’s perspective: READ MORE
Increase reliability of background job processing using super_fetch of Sidekiq Pro
Many applications use Sidekiq for background job processing. Although the “basic_fetch” strategy shipped with Sidekiq works in normal circumstances, it is prone to losing jobs when the Sidekiq process crashes. In this blog post we will discuss this problem in great detail and the benefits of “super_fetch” strategy offered by Sidekiq Pro to address that problem.
What the Regex?
Common usages of a regex in Ruby are to check if a string matches, to find one or all occurrences of the regex pattern, or to substitute one string with another.
tty-config v0.2.0
The latest tty-config adds validate API call for asserting configuration values that meet validation rules. Validation rules are specified via a callback and Ruby is your validation DSL!
The State of Test Coverage in Rails
How many Rails developers are working on applications with 80+% test coverage? Learn this and more about the state of test coverage in Rails. [more inside]