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.
thoughtbot playbook in Chinese
The well known thoughtbot playbook from our awesome Ruby community has been translated into Chinese by beansmile, another team in China also loves Ruby and Rails. The book received around 1000 uv in the first day, so I have to say thoughtbot, you are even popular now in China :D Read more
What's New in the Honeybadger Gem v3
The latest version of the honeybadger Ruby gem includes a lot of improvements and new features. Check it out! - http://blog.honeybadger.io/what-s-new-in-the-honeybadger-gem-3-0/
HashID Obfuscated URLS in Rails
When I am building a Rails app that I expect to be public facing in some sort of capacity, I don’t want to be displaying auto-incrementing, integer based IDs in my URLs. Not only does it visually look better, in my opinion. It is a security enhancement by removing the predictability of record discovery via the URL. Read more
Rearmed-rb 1.3.0 Released!
I have just released v1.3.0 of my gem Rearmed-rb. Rearmed-rb is a collection of helpful methods and monkey patches for Objects, Strings, Enumerables, Arrays, Hash, Dates . With this new release I have extracted the Rails functionality to its own gem Rearmed Rails since the Rails portion was getting quite extensive. The Rearmed plugins are all about easier and more natural code, I encourage you to check these plugins out.
Shielding from Amazon S3 outages in Rails
How this single controller in our Rails app shielded us from Tuesday’s Amazon S3 outage
Which Rail profilers are alive, half-alive, or dead in 2017?
A number of in-browser Rails profilers have come, gone, or continue to exist but in a zombie-like, half-alive state. Here’s a 2017 summary of the Rails profiler ecosystem: what works, what doesn’t, and each profiler’s niche.
space_elevator - The ActionCable Client for Ruby
space_elevator is a client for integrating a ruby application with a remote ActionCable-based backend provided by Rails 5 or compatible framework. It allows for subscription and publication to multiple channels simultaneously, and eavesdropping on wire-level messages. Harness the power of WebSockets to receive push notifications in your own Ruby applications!
Please don’t hate OpenStruct
If you know how OpenStruct can kill performance you must see how ActiveModel pin OpenStruct down.
What is Proper Continuous Integration?
It’s time to establish a common standard for what’s continuous.
Is Administrate a dead project?
There has been some chatter about Administrate being so-called “abandonware”. Happily this is not the case. http://www.carlosramireziii.com/administrate-is-not-dead.html
Hanami v1.0.0.beta2
Minor bug fixes - Final release by the end of March.
Setting up React & Rails has never been easier
Rails 5.1 integration of Webpack brings about a much more streamlined experience for React+Rails applications. Here we show an example of how simplified the process has been along with boilerplate code sufficient for starting a new project. Read more
3 ways to use React with Ruby on Rails 5
This article introduces 3 methods for how to use React.js in Ruby on Rails apps. It also discusses the pros and cons of each method and when to choose which one - https://learnetto.com/blog/3-ways-to-use-react-with-ruby-on-rails-5
Be Careful With Method Caching
A small relate about how method caching was the culprit for a failing spec that took me more time to fix it then it should. More inside
New Book: Core Ruby Tools
This book provides a short tour of four core Ruby tools: Gems, Ruby Version Managers, Bundler, and Rake. We’ll see how these tools fit into the Ruby environment and your computer system, and learn how to diagnose and fix problems that you may encounter when using them. The book is available now and completely free. Read more
You Don't Need an API Wrapper
When you are working with “informational” HTTP APIs (like weather, geonames and similars, currencies, movies, transportations and so on), you probably don’t need a dedicated Ruby gem at all. Here is why.
Basic introduction to VCR
while following TDD approach, there are certain tools available which might help you save lots of time to solve specific issues. one of those tools is VCR. what is VCR and it’s purpose just check out at
Your Guide to testing in Ruby on Rails 5
Testing, while requiring a little bit more cognitive load up front, and even loathed by some developers, will often pay dividends down the road. It will almost always have you saying “I’m glad I wrote tests for this” at some point. Read more
Write that first complicated test
What code of yours isn’t tested? Is it code that deals with complicated situations that you don’t control? Threads, running commands, git, networking, or UI? How can you make those challenging tests something you can rely on?
Rearmed Rails gem released!
Rearmed Rails is a gem that packs a bunch of helpful opt-in monkey patches to your Rails app to make your life better. One for example is a version of ActiveRecord or method that works in Rails 4,5+ and works the way you expected it to and is usable, unlike the way they implemented it.
Generating application documentation in Rails 5
Last year, I wrote a post about my workflow for application-level documentation in Rails. Then Rails 5 removed support for it. Here’s how to add application doc support back in your Rails 5 apps.
How to Do Agile Prototyping Using Static Pages to Reduce Development Time
At MarsBased, we have to create lots of prototypes and concept works for our clients. As a consultancy, we get a lot of requests like this, and we’ve found a pretty good solution for the case of not having a designer in house, or a very busy one. Read more