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.
Traker - Track rake tasks in a Rails application
Traker is a Rake task tracker for Rails applications. When integrated, it keeps track of rake tasks that have been run and stores that information in database. https://github.com/pavloo/traker
github analytics w/ hubba-reports gem - What are your most used languages?
Hello, I have split the hubba github analytics gem into two, that is, hubba and hubba-reports for easier (re)use and split the data gathering / collecting via github api calls and the report generation. Anyways, I have added a new language report that lists all your languages used by char / bytes count and by number of repos. See LANGUAGES.md as a real-world example. Happy data crunching with ruby. Cheers. Prost.
Introducing Mailbox Tester
Do you send lots of emails with your Rails app, and wish you had a way to spot check them? Fix those typos, and make sure the dynamic content looks correct? It’s easy to verify there are no code bugs with Rail’s builtin Mailer preview. But how do you prevent sending someone’s wrong order or personal information, especially if it’s in a batch of emails? You need to generate those emails, and make sure they match everything. https://onrails.blog/2020/10/12/introducing-mailbox-tester/
How to write Clean Code?
Lessons Learned about Clean Code book of Uncle Bob [more inside]
Free Blog setup with Github Pages
Do you want to launch your blog absolutely FREE? Here are the steps that will help you to launch your blog within 30 mins and that too totally FREE of cost https://mayurkumarpatel.medium.com/how-i-launched-my-blog-with-free-of-cost-and-the-minimum-efforts-2d6ab3f165c4
Docker for Development Vlog
I discuss Docker and its use cases while developing. If you’re not using it, you should give it a shot. It has changed the way I develop applications. https://youtu.be/qP424uuQSmk
Glimmer Calculator Desktop App Runs On The Web Via Opal
Glimmer Calculator v1.1.3 (Glimmer DSL for SWT desktop app) finally runs in Glimmer DSL for Opal on the web without needing to change a single line of Glimmer desktop GUI code. It is completely written in Ruby! This is the future of web development as we know it! You simply build apps for the desktop and they just work on the web. After all, web browsers are a desktop app and GUI is just GUI whether on the web or desktop. https://andymaleh.blogspot.com/2020/10/glimmer-calculator-v113-runs-on-glimmer.html
Everything You Ever Wanted To Know About View Caching In Rails
If you’ve ever built a UI in Rails, you’ve probably noticed that views tend to get slower over time. That’s because adding features to a UI often means adding DB queries to the view. They add up. Fortunately, Rails provides us with an easy-to-apply band-aid in the form of view caching. In this article, Jonathan Miles introduces us to view caching, discusses when it’s appropriate to use, and covers common pitfalls to watch out for. https://www.honeybadger.io/blog/ruby-rails-view-caching/
hubba (github analytics) gem update - adds traffic (page views / referrers) reports
Hello, I have updated the hubba gem - a little github api helper for (auto-)generating statistics reports. New traffic reports include page views and clones, top/popular referrers, top/popular pages plus a catalog page with description and topics. For live (real-world) examples, see TRAFFIC.md, PAGES.md, REFERRERS.md, CATALOG.md. Cheers. Prost. PS: Note - the traffic reports require push access for data gathering for your github (personal) access token.
Glimmer DSL for Opal v0.3.0 Custom Shell Support
Glimmer DSL for Opal v0.3.0 is out with Custom Widget and Custom Shell support, allowing developers to webify their pure Ruby desktop apps with Opal on Rails without changing a line of code. New custom shell support enables launching windows (opening browser tabs) from a GUI just like opening windows in a desktop app. Routing is handled automatically so that developers can keep focusing on business GUI details. https://andymaleh.blogspot.com/2020/10/glimmer-dsl-for-opal-v030-custom-shell.html
🔥 FriendlyId and Kaminari in Rails application
This is part 7 in the project: Build Blog with Ruby on Rails [more inside]
Glimmer DSL for XML (& HTML) v1.1.0
Glimmer DSL for XML (& HTML) v1.1.0 has been released with improvements to its XML/HTML Ruby DSL, like automatically including the HTML doctype when it is a full document and automatically not surrounding content with <html></html> when it is partial content not including head/body. https://andymaleh.blogspot.com/2020/10/glimmer-dsl-for-xml-v110.html
Scope gates in Ruby: Flat Scope ⛩️ ✨ 🧙♂️
An overview of the execution context of blocks => https://medium.com/rubycademy/scope-gates-in-ruby-flat-scopes-bbf100f8e459
Extract I18n automatically from Ruby, SLIM, ERB, Vue-pug
CLI helper program to automatically extract bare text strings from your app into Rails I18n yml interactively. [more inside]
hubba gem - little github api helper for (auto-)generating statistics reports
Hello, I have updated the hubba gem - a little github api helper for (auto-)generating statistics reports (summary, stars, timeline, updates). Cheers. Prost.
Productivity Tools that every web developer should aware of
Do you want to increase your productivity? My article on “Productivity Tools that every web developer should aware of” can help you. Read it here: https://link.medium.com/riUmU3TGrab
What makes Ruby on Rails the best Web Development Framework
Ruby on Rails web development framework is still going strong. Read this blog to know what makes Ruby on Rails for web development so relevant for businesses in 2020. https://www.botreetechnologies.com/blog/ruby-on-rails-web-development-framework
Polyphony has a new io_uring backend!
I am pleased to announce the release of Polyphony version 0.46.0, which includes a full-blown io_uring backend. The io_uring backend uses a relatively recent new I/O API in Linux that is the future of I/O processing. The new backend provides more than double the performance of the libev backend, achieving over 120K requests/second using a basic “Hello world” HTTP server. [more inside]
How's the Performance of Ruby 3.0.0-preview1?
How does the new preview’s performance stack up on Rails? And how reliable are these numbers? [more inside]
Some things you should know about eager loading in ActiveRecord
Discover an automated way of dealing with N+1 queries, how to go around some of the limitations of eager loading in ActiveRecord and how to write tests to prevent those sneaky N+1 queries from coming back: https://lipanski.com/posts/activerecord-eager-loading