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.
Rails Console Magic Tricks
Seven techniques to improve a developer’s experience during a Rails Console session. https://medium.com/@lfv89/rails-console-magic-tricks-da1fdd657d32
Testing APIs in Ruby: An overview
A couple of different methods to test APIs with RSpec. Describes WebMock, VCR, and building a custom fake server. https://blog.schembri.me/post/testing-apis-in-ruby-with-rspec/
Discover Rails: Active Record
This article is about how to make your own ActiveRecord gem. Follow the article, I will introduce how to make this gem step by step. From building the gem to testing the feature of rspec. Hope you are interesting in this topic! https://medium.com/@johnsonzhan/discover-rails-active-record-cc15140adfe7
Best image uploader for Rails — Revisited
Three years ago I wrote about how to choose the right uploader gem for your project. Since the time the original article has been published, all mentioned libraries got updated, one got deprecated, and two new libraries have appeared. I feel it’s time to revisit this topic. https://blog.stanko.io/best-image-uploader-for-rails-revisited-3b3b7618cc4c
Rails on Docker: Using an Entrypoint File in your Containers
A quick tutorial post describing how to use an entrypoint file to avoid “...server already running. Check tmp/pids/server.pid.” (and other issues) when developing and scaling Rails apps in Docker containers. https://www.chrisblunt.com/rails-on-docker-using-an-entrypoint-file-containers/
Doorkeeper 5.0.0 released
Doorkeeper, the OAuth 2 / OpenID provider for Ruby on Rails and Grape applications, is released under 5.0.0 major version with a bunch of new features and bugfixes: API mode, PKCE flow, Public/Private clients, request hooks, Rake tasks for tokens management, improved configuration options and more.
Protecting a Rails App with Passenger and Nginx
Explaining the complete process of password protecting your website with Passenger and Nginx @ Protecting a Rails App with Passenger and Nginx
Replr: A single line REPL for your favorite languages & libraries.
Built on top of Docker, Replr is an easy way to get a REPL with your favourite language stack. Supports Ruby & gems to start! [more inside]
EuRuKo (European Ruby Konference) 2018 @ Vienna (Austria) - 24+25th/Aug - Live Stream
Hello, the EuRuKo 2018 just kicked off this morning in Vienna, Austria. Big thanks to Ramón Huidobro (@SenorHuidobro), Super Princess Pilar (@Tamacodechi) and the org team for making in happen. Follow along with the EuRuKo 2018 live stream on YouTube for all talks!. Cheers. Prost.
Rails Rspec 3 View Test Examples
I use Rspec View for testing required html tags, required partial, or conditional in html. Here are some examples View specs with Rspec 3.7 https://www.railsmine.net/2018/08/rails-rspec-3-view-test-examples.html
ignored_removed_columns gem: Find removed or typo columns defined in ignored_columns
Have you forgot to delete ignored_columns in rails model after the column dropped? Or have you made a typo in ignored_columns? This gem finds unused ignored_columns. [more inside]
Eager loading polymorphic associations
Explaining how to deal with eager loading polymorphic associations as includes doesn’t work as expected: https://wp.me/p9Qu97-1v
Metaprogramming Ruby cheatcheat
In this TIL note you can find several Ruby meta-programming examples: [more inside]
Ruby Testing Podcast: Continuous Integration, Deployment and Delivery
A conversation with Marko Anastasov about how he got started with programming and testing, as well as Continuous Integration, Continuous Deployment, Continuous Delivery and the difference among the three: http://www.rubytestingpodcast.com/marko-anastasov
Free update to Everyday Rails Testing with RSpec
I’ve released an update to my book Everyday Rails Testing with RSpec with a brief intro to system specs, some fixes to address breaking changes in Devise and Geocoder, and a few other smaller fixes. As usual, this is a free update for all existing readers—sign into Leanpub to download a fresh copy. Thanks as always for your support!
Why the ruby CSV standard library is broken, broken, broken (and how to fix it)
Hello, I’ve written up an article titled “Why the CSV standard library is broken, broken, broken (and how to fix it)”. Let’s make ruby the best it can be for data wrangling - starting with the humble comma-separated values (CSV) format - the world’s most popular data interchange format in text :-). Questions and comments welcome. Cheers. Prost.
OpenStruct in Ruby
In this article, we’re going to explore the following topics:
Rubyflow
Hi, developers from http://www.rubyflow.com, could you please add a functionality to ignore “Author” of posts. I see a lot of spam here and articles about nothing (many companies just publishing articles to get better SEO). It could be a great feature. Thank you
From Service Objects to Interactors
This article discusses the Interactor gem as a robust implementation of the service object pattern and some suggestions for best practices when using it. [more inside]
Mastodon instance for Rubyists
You might've heard of Mastodon in the past, and recently there's been an increase in folks leaving Twitter for it. I've set up a Mastodon instance specifically for Rubyists, in the hope that it will help us create some new communities for sharing knowledge and techniques. [more inside]
csvreader - read tabular data in comma-separated values (csv) format the right way
Hello, I’ve started to put together a new library / gem, that is, csvreader - that lets you read tabular data in the comma-separated values (csv) format the right way :-), that is, uses best practices such as striping / trimming leading and trailing spaces, skipping comments and blank lines, “fixes” quote errors and more - all out-of-the-box with zero-configuration. and, thus, fixes some major bugs in the (old) standard csv library with a purpose-built parser (instead of a suppossed “faster” split(",") kludge). Happy data wrangling with ruby. Cheers. Prost.
Ruby Bitwise Operators
An operator is bitwise when instead of treating integers as whole numbers, it treats them as a sequence of bits. [more inside]