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.
Ruby on Rails and transactions - learn about callbacks to make your app more flexible
Rails transactions allow you to build complex processes and revert changes in case of failure. Learn how to use transaction callbacks to make your app even more flexible READ MORE
Built On Rails: The definitive list of apps built with Rails
I started builtonrails.com to collect all the awesome examples of Rails out in the wild. Check it out and expand the list!
Exceptional Creatures: Ruby's RuntimeError
Learn how Ruby uses its RuntimeError exception and check out this week’s creation at Exceptional Creatures!
A Gem to compile and run code
hackerearth_api is a gem which can be used to compile and run code via Hackerearth API. [more inside]
Dry-rb and Trailblazer Reform
Why do we use dry-rb and Trailblazer Reform on the backend? [more inside]
Reducing Memory Usage in Ruby
Aaron Patterson is working on a compacting garbage collector for Ruby and in this post he explains the challenges involved.
Setup SSL proxy for insecure browser content with Ruby and NGINX
A tutorial on how to use Ruby and NGINX as an SSL proxy for insecure static assets. It also describes some basic streaming techniques for Rails and Rack apps. [more inside]
Refactor your Ruby on Rails app with policy object pattern
Policy objects are primitive Ruby objects, used for checking operations isolation. I personally love this pattern, however, there are some rules that we should stick to in order to name given object as a policy object. READ MORE
One way to build a Simple Form Custom Input Component
I wanted to use a Bootstrap datetime picker in my Simple Form-based form in Rails 5.1, and didn’t find a built-in solution or a how-to that exactly fit my needs. Here’s what I came up with!
ClojureScript with Middleman via Shadow-CLJS
Using ClojureScript in a Ruby Middleman project. http://bobnadler.com/articles/2018/01/28/clojurescript-with-middleman-via-shadow-cljs.html
FizzBuzz (1, 2, Fizz, 4, Buzz,...) by Example - There's More Than One Way To Do It
Hello, I’ve added FizzBuzz (1, 2, Fizz, 4, Buzz,…) by Example - There’s More Than One Way To Do It by Tom Dalling, Paweł Świątkowski, Gerald Bauer, et al to the Yuki & Moto Press Bookshelf. Free Online Books (and Booklets) about Ruby ‘n’ Friends in the Manuscripts format and built with Jekyll and Octobook themes. Happy reading. Cheers.
Rails Object#presence vs Object#try
I am curious about performance for Rails Object#presence vs Object#try - here is result
Speed up your Ruby on Rails app with frozen constants
Freeze your constants, make them immutable and reduce memory allocation at once - learn how
18 Companies Using Rails in 2018
What companies use Ruby on Rails to power their user-driven applications? Here are just a few that depend on Rails every day (that you’ve probably heard of before!) https://blog.planetargon.com/entries/18-companies-using-ruby-on-rails-in-2018
API Versioning with Ruby on Rails: What Gems Are the Best
https://yalantis.com/blog/api-versioning-with-ruby-on-rails/ There’s a great number of gems and approaches for API versioning with Ruby on Rails. In this article, we describe different gems and compare different approaches to API versioning.
A Couple of Things You’ll Love about Crystal Language - a Rubyist’s Perspective
Crystal - few reasons you have to try it.
Creating a GTK+ ToDo application with Ruby
I published a new tutorial for creating a GTK+ ToDo application with Ruby.
RSpec: learn how to combine stubs and mocks and create spies structure
RSpec spies is a test structure that allows you to keep order and clarity of your test path. It’s a three-step flow: setup, exercise, and verification - I want to learn more
Is your company using React+Rails?
I’m looking for some companies to interview and highlight (with a link back!) for a blog post on React+Rails. If your company is using Ruby on Rails with React.js, I’d love to hear from you. [more inside]
yield_self is more awesome than you could think
Just a few words on yield_self awesomeness and few (weird) usages following from the fact it can return Enumerator
RSpec: the difference between mocks and stubs
Watch stubs and mocks in action and learn about the differences between them - READ MORE
Isle of Ruby: Early Bird tickets and more!
We’ll begin selling Early Bird tickets for Devon-based Isle of Ruby at 10am GMT on Thursday Jan 25. Come join us in April!