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.
Hello. I’ve made a simple instruction if you want to start run integration tests, and would like to use some boilerplate. In article I tried to give explanations around all used libraries and bit about GitLab CI. Also in article you can find an example of using site_prism gem which is wrapper for Page Objects in ruby tests.
Hello, I’ve put together the monofile gem / library that lets you read in / parse monorepo / mono source tree definitions, that is, a list of git (and github) projects, and more. E pluribus unum. Make out of many, one. Cheers. Prost.
We’re excited to announce the the release of Bridgetown 0.18, codenamed “Taylor Street”. This is an action-packed release which sets the tone for the future of Bridgetown and the broader Ruby web developer community. Check out the top highlights!
Are you using mac book and still not feeling productive? Know these 11 terminal shortcuts that will make you the rockstar: https://blog.mayurkumar.info/11-Terminal-shortcuts-that-will-make-you-Rockstar/.
Want to know how to integrate PayUMoney in your Spree Commerce store using Ruby on Rails? Read this blog for step-by-step instructions. https://www.botreetechnologies.com/blog/integrate-payumoney-spree-commerce-store-with-ruby-on-rails
Hello, I have put together the football-to-psql tool that lets you load / read football.txt match datafiles (e.g. English Premier League, German Bundesliga, Spanish La Liga 2020/21, etc.) into a postgreSQL database. Example:
football-to-psql england.db 2020-21\1-premierleague.txt Enjoy the beautiful game with ruby. Cheers. Prost. PS: Not a friend of PostgreSQL? Try the little brother / sister serverless SQLite variant, see
This release brings numerous updates to the UI—better styling, improved visual consistency, and a brand new logo. Also, there are multiple other small fixes and improvements. See https://github.com/automaticmode/active_workflow for more. 🎸
Discover the test-oriented alternative to detecting the N+1 query problem in your Rails and pure Ruby applications even before the redundant database calls manifest in your development. The n_plus_one_control gem works differently from well-known tools such as Bullet and makes sure that extra SQL queries never go unnoticed, independent of your ORM tool of choice.
Refresh parts of your page using the new version of render_async. Read more about it in the blog post here https://pragmaticpineapple.com/reloading-rails-partials-on-demand-with-render-async/
You can use the annotate gem to get a summary of the Active Record schema at the top of relevant files (models, controllers, fixtures). https://cionescu.github.io/2020/10/24/using-annotate-in-rails/
Gladiator (short for Glimmer Editor) is a text editor fully written in Ruby as an exercise in using Glimmer DSL for SWT. It was declared the Ugliest Text Editor Ever on reddit. Sadly, it might no longer hold that title since it just got colors with Ruby Syntax Highlighting. Check it out at GitHub: https://github.com/AndyObtiva/glimmer-cs-gladiator
Hello, I have bundled up in the flow-lite gem - a lite (lightweight) workflow engine that let’s you define your workflow steps in Flowfiles (in ruby) and includes the flow command line tool. The original itch / need / inspiration was / is the use in GitHub Actions (Workflows). Happy automating with ruby. Cheers. Prost.
Here is the simple example which uses the group_by method to group records by it’s created_at date differentiating today’s messages with other days’ messages. https://www.botreetechnologies.com/blog/rails-grouping-the-records-by-group-by-method
It is important to know the expected usage of an web endpoint when picking between Activice Records helper create_or_find_by or find_or_create_by. Know the DB interactions that best fit your needs and how one implementation could be up to 4X faster depending on your needs.
Do you know, software engineers are basically carpenters. This analogy will help you to boost your productivity. Read more here: https://mayurkumarpatel.medium.com/how-engineers-are-basically-carpenters-9f1b3c38a511