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.
One Week of Remote Working: The Good & The Bad
Everyone read DHH’s book on the subject, but we never made a concerted effort to adopt remote culture until last week, and we’ve written about what we learned here: https://www.madetech.com/blog/one-week-of-remote-working-the-good-and-the-bad
Comparing Rails and Phoenix
I’ve tried to create a thorough and fair comparison of Rails and Phoenix. We’ll talk about where they are similar and where the differ, providing examples all along the way. In Part 1 we’ll mostly talk about getting started, routing, and app architecture. In Part 2 we’ll dive into the Model, View, and Controller.
Which Ruby background job framework is right for you?
Just like there is no single programming language that can solve everyone’s problem, there is no single ‘right’ job framework. Here’s a comparison of Sidekiq, Delayed::Job, and Suckerpunch.
How to teach React.js properly? A quick preview of wroc_love.rb workshop agenda
In this short blogpost I describe and analyze what makes React.js hard for beginners and how to overcome it. The conclusion is applied to create a workshop agenda. I’d love to invite you to a workshop - if you happen to be in Wrocław, it’s free!
Produce PHP-style multidimensional array in Ruby, e.g arr[1][2][3] = 'foobar'
I had to reproduce multidimensional PHP array behaviour in ruby. Here is the result: [more inside]
New Ruby on Rails 5.0 Book
I published my new Ruby on Rails 5.0 book on Amazon. It covers all the normal Rails stuff plus the new 5.0 goodies Action Cable and Active Job. The Ruby beginner’s chapter has been updated to Ruby 2.3. [more inside]
Build Books w/ Gutenberg - a Web Typography Starter Kit - and Jekyll
Hello, I’ve put together a static site theme that lets you build books w/ Gutenberg - a web typography starter kit by Matej Latin. The theme uses the Sass source version and gets auto-build using the GitHub Pages service. See the live example - “Strange Case of Dr. Jekyll and Mr. Hyde” by Robert Louis Stevenson or the source repo. Happy Jekylling. Cheers.
Rails 5 makes belongs_to association required by default.
From Rail 5 onwards all belongs_to association is required by default. [more inside]
Top 7 Ruby Gems
Go through the list of Top 7 Ruby Gems provided below and see your business soar!
Wye Tech News #10
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Rails 5 does not halt callback chain when false is returned
Rails 5 does not halt callback chain when false is returned. [more inside]
Translation in Rails never was so easy
After two years of working on a big multi-language application I’ve extracted our translation code (a simple convention & defaults) into t_t
gem. Check out if it helps you by looking at the cheatsheet
Rolling Builds on TravisCI
Reduce the concurrent job load on your TravisCI plan using rolling builds by canceling older builds on the same branch. A Rails 5 API template application that your organization can fork, configure, and deploy to Heroku.
Namespacing views by subdomain in Rails
Here are some tips and tricks on how to load different views and layouts based on the current subdomain your app is being hosted from.
Run migrations on Dokku/Heroku deployment
How can you run migrations when you deploy code to Heroku or Dokku: https://buildtoship.com/run-migrations-on-dokku-heroku-deployment/
Testing Rails Simple Guide — Part 2
From part 1, we already know we can use Integration Test and Unit Test to test our rails application. So in this part, we will dive deep to explore how to writing test with RSpec. [more inside]
Take a screenshot any time Cucumber's scenario failed on CircleCI
Let’s take a screenshot Whenever one of scenarios is not passed on CircleCI, I’ll run it on the local computer to fix it. However, last month when I ran failed scenarios on local computer, they passed without any errors. It’s so weird! So I decide to get screenshot of current webpage any time a scenario fails.
Namespacing and scoping your Rails monolith
I decided to write up how I use namespaces and scopes in my Rails apps to separate concerns.
Henry’s Themes - Free Jekyll Starter Themes incl. Bootstrap, Classic Books, etc.
Hello, I’ve moved all my Jekyll static site starter themes for easy (re)use into its own github org, that is, Henry’s Themes. All are Jekyll 3 ready (and use kramdown for markdown processing). Static site examples include:
tty v0.4.0 released + website updated
tty packs new upgraded versions of all its dependencies from tty-* ecosystem including new ones such as tty-color. For easy of references and documentation you can use updated website API section.
The application helps you search information relate to languages and technologies
The application helps you search information relate to languages and technologies. Currently, this application just supports three sources: StackOverFlow - RubyGems - Confreaks with simple features. [more inside]
Chad Fowler Interview
The Passionate Programmer on Developer On Fire I interviewed Chad Fowler on my podcast. He told outstanding stories about not only life in software, but life itself. Amazing guy and he absolutely rocked the interview. His advice on being deliberate, favoring mindfulness, and empathy are solid. I think you’ll like this one.
Eileen Uchitelle Interview
Eileen on Developer On Fire I interviewed Eileen Uchitelle on my podcast. The stories she shared were great and inspiring. She has a great perspective and was awesome in sharing what life is like for her at Basecamp and how she has gotten to where she is, Rails 5, and becoming a speaker despite the petrifying fear.