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.
Tutorial on adding authentication to a Rails 6 app using the Rodauth authentication framework: https://janko.io/adding-authentication-in-rails-with-rodauth/
Hello folks, I’m happy to present RailsBump, which I have been working on for a while! RailsBump is useful to anyone looking to upgrade the Rails version of their app. It shows you whether your favorite gem (or all gems in your Gemfile) is compatible with the next Rails release. Check it out and let me know what you think: https://railsbump.org/ If you have ideas for more features or run into problems, please open a Github issue: https://github.com/manuelmeurer/railsbump
I wrote about how to generate PDFs using DocRaptor.com in Rails 6 at https://bilalbudhani.com/generating-pdfs-in-rails-application-using-docraptor/
My aim here is to disabuse readers of the notion that RuboCop can only make code better. It’s a tool, and whether it helps or hurts depends on how it’s used. Don’t be afraid to disable cops if you can’t see how they benefit the team. https://www.rubypigeon.com/posts/my-beef-with-rubocop/
After conversion wrappers a second good use case has been discovered in the development of a configurable logger for StimulusReflex: Refinement of
String in our Gem to provide a nicer API to color your output without polluting the class for the whole application:
You’ll probably never implement sorting from scratch. But sorting algorithms are foundational in computer science and have become a standard feature of the ritual hazing…er…interview process for developers at all levels. In this article, Julie Kent introduces us to the merge sort algorithm. She’ll show us how it works, implement it in ruby, and discuss its performance characteristics. [more inside]
What happens when a private method of superclass is overridden in Ruby? https://medium.com/rubycademy/overriding-private-superclass-methods-in-ruby-82ee4789c8f2
Multi-tenancy is Rails is very common but we didn’t have an actively maintained gem. Chris Oliver just become the maintainer of Acts_As_Tenant and published a release https://github.com/ErwinM/acts_as_tenant/releases/tag/v0.5.0
Creating an application for shopify using Ruby on Rails is very easy. Learn More about How To Create Custom Shopify App With Rails. Contact Us Now! https://www.botreetechnologies.com/blog/how-to-create-custom-shopify-app-with-rails
Hello, Have you heard about Matz’s new language, mruby? mruby was released to the public in 2012 and will be updated to version 3.0 this winter. mruby can be used for a variety of applications from enterprise embedded development, game development, and web server add-on function development to fun personal projects using microcontrollers. In this webinar, Matz himself will talk about the new mruby and answer your questions, so we encourage you to join us. We look forward to having you in the webinar! https://www.eventbrite.com/e/lightweight-implementation-of-ruby-mruby-30-introductory-webinar-tickets-117604948567
There are a bunch of ways to contribute to open source in the Rails ecosystem that don’t involve the main
rails/rails repo. Here’s how I got my Hacktoberfest shirt this year by contributing to Ruby and Rails projects: https://boringrails.com/articles/hacktoberfest-2020-recap/
Since the last time I’ve talked about stimulus-components, I added lot of new controllers! [more inside]
Hello, I have put together the new little football-cat gem / tool that lets you concatenate match files (for football clubs or national teams) in the one-line, one-match & one-file, one-season Football.CSV format into one PLUS (auto-)adding the missing league and season headers / columns inferred from the file’s basename (e.g.
ES1) and the file’s directory (e.g.
2020/21), for example. Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.
ArrayIncludeMethods v1.0.4 (missing methods from Ruby Array API) and Glimmer v1.0.3 (DSL Framework used in Glimmer DSL for SWT JRuby Desktop Development GUI Library) have been released! https://andymaleh.blogspot.com/2020/11/arrayincludemethods-v104-and-glimmer.html
https://github.com/delonnewman/activerecord-setops - Union, Intersect, and Difference set operations for ActiveRecord (also, SQL’s UnionAll).
Not quite the first of the month, but I tagged and released v20.11 of ShinyCMS a few days ago. There was a surprising amount of stuff in the release notes - apparently I’ve been busy - but the highlights are mentioned on the main release page (the first link here). In particular, all the models now have ‘soft delete’ via acts_as_paranoid, atom feeds are generated for the blog and news sections, and I added a set of partials and helpers for adding consistent pagination and search to pretty much every ‘list of data’ (index) page in the admin area. In the process of getting the pagination working, I Iearned that Kaminari has a very long-standing issue with routing into Rails Engines   , which is a bit of a problem for a CMS built almost entirely out of them. Fortunately the community has provided a fix <3
This is the first of a series of tutorial on building a Customer Relationship Management application using Ruby on Rails. Hope you enjoy reading it! https://medium.com/modern-rails/building-a-modern-crm-in-ruby-on-rails-part-1-3b62f7b4dc7d