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 2.5 New Stack Trace
I put together a video of the new stack trace format so you can see it in action :) https://www.youtube.com/watch?v=rgPA3kzqiyA
Why Ruby app servers break on macOS High Sierra and what can be done about it
Upgrading to High Sierra or planning to? This is what you should know.
CSRF protection on single page app API
Single Page application is awesome paradigm but because they communicate with APIs there is lot of confusion around what security measures are needed and what are unnecessary. In this article I’ll try to explain when is CSRF protection needed. [more inside]
Which JSON Serializer To Use For A New Rails API?
Have you ever wondered if there were benefits to using Jbuilder vs. Active Model Serializers? Has AMS been replaced by JSONAPI::Resources? There are a lot of JSON serializers to choose from for a Rails API, so which one is best? I think it all comes down to your project’s needs and your coding style. Use this review of the most popular options to make sure you’re using the right one for you.
Overhauling the PorkCast database in Rails
Millions of rows of data needed a makeover. Here’s how I did it. https://schwad.github.io/ruby/rails/database/2017/10/13/overhauling-the-porkcast-database-in-rails.html
Testing Jekyll Websites with HTMLProofer
How to deal with link rot on your Jekyll blog or website using the HTMLProofer gem. [more inside]
Scraping websites with Ruby & Headless Firefox
Learn how to scrape websites with Headless Firefox and Selenium WebDriver: https://readysteadycode.com/howto-scrape-websites-with-ruby-and-headless-firefox
Receiving and Parsing Email in Rails 5(With Griddler and Mailgun)
Another aspect of email within a SaaS application is receiving email. While this is far less normal or used in comparison to sending, it can be a great way to make end user’s responses to email or action items quicker. https://hackernoon.com/receiving-and-parsing-email-in-rails-5-c975c2766364
Colorls = ls + color + icons
Colorls is a Ruby CLI gem, which tries re-creating support for ls, and much more such as –git-status and –tree flags. https://github.com/athityakumar/colorls
Reusable UI components in Rails
Have you ever worked in a web application with many custom user interface (UI) components? How were they structured? This article shares some tips and tricks on how to organize them in a Ruby on Rails application. [more inside]
7 Little-Known Ruby Methods To Help You Write Better Code
Expanding your mental toolbox of Ruby methods will help you write better Ruby code! http://www.rubyguides.com/2017/10/7-powerful-ruby-methods/
Introducing hanami-cli
Introducing hanami-cli: a general purpose Command Line Interface (CLI) for Ruby. Learn why Hanami replaced thor in favor of hanami-cli and how to use it to build a CLI application in 5 minutes. https://lucaguidi.com/2017/10/10/introducing-hanami-cli/
Could We Drop Symbols From Ruby?
A potentially controversial thought experiment here. Could symbols simply be replaced by frozen, immutable strings? [more inside]
Ruby Dev Summit: A Free Online Event for Rubyists
It takes place October 16-21 and has a lot of great speakers including Matz and Michael Hartl (of Rails Tutorial fame). [more inside]
ActiveRecord: biting the hand that feeds you
The HN comment thread on Schneems’ How I Reduced my DB Server Load by 80% post was reduced to debating the merits of using ActiveRecord…or not. I think it’s easy to miss the bigger picture when you focus on one performance problem.
The 95/5 Guide To Ruby and Rails 5
If your goal is to build a solid foundation that you can expand on to become a professional software developer who uses Ruby, Rails and related tools to create value for yourself, employers and/or clients, checkout The 95/5 Guide To Ruby and Rails 5
[Screencast] Basic Testing Introduction in Rails
Using the Rails 5.1.X defaults, we have a look at what is configured and explore the different types of tests; using the provided MiniTest and Capybara. https://www.driftingruby.com/episodes/basic-testing-introduction-in-rails#comments
Vanilla Rails
This is an approach to Rails apps centered around minimising dependencies and keeping your app lightweight. http://pooreffort.com/blog/vanilla-rails/
Docker development environment for humans.
Don’t want to learn a whole -bunch –of -commands_with_flags/just -to run_rails or other_things? https://github.com/surzycki/picobox [more inside]