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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
I just released HexaPDF 0.15.0 which implements support for flattening annotations and AcroForm fields. See https://hexapdf.gettalong.org/news/2021/hexapdf-0-15-0.html
Before you can decide on a front-end for your Rails app, you need a feel for the options. Does a particular JS framework speak to you or does it make you feel dirty inside? There’s only one way to find out! In this article, Julio Sampaio walks us through creating an Angular app from scratch and integrating it with a Rails back-end via webpacker. https://www.honeybadger.io/blog/angular-rails-5/
When writing migrations in Ruby on Rails, it can seem easy to leverage ActiveRecord models and their defined methods. Unfortunately this approach is not without its problems. Learn what these problems are and how to avoid them in this article.
Extending classes with new methods is a pretty useful feature of object-oriented programming languages. However, implementation of extension methods can be more or less simple and elegant. Today I would like to compare implementation of extension methods in C# and Ruby. [more inside]
Main addition in this release (and cause of some fairly major code shuffling) is Packwerk, to help define and enforce plugin boundaries. Also routes partials, bullet N+1 warnings in dev, CodeClimate coverage reporting to go alongside CodeCov, and improvements to various base controllers, base mailers, concerns, etc for plugins to inherit from.
I just released version 1.0.0 of
Alba, the fastest JSON serializer for Ruby. If you want fast, flexible and well-maintained JSON serializer, please try it and give some feedback!
Creating a command-line client that receives live updates from an actionable server has been my life-long dream. Okay, not really, but I still think it’s kind of neat. [more inside]