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.
Better Rails authentication implementation with Authentication Zero
Wrote a blog post on how to create a full authentication easily with the Authentication Zero gem: https://codewithrails.com/rails-authentication
Web Framework Benchmarks
Rails vs other frameworks. See the results, if you haven’t already: 2022-07-19: https://www.techempower.com/benchmarks/#section=data-r21
Testing Thor Ruby Required Options
Thor Ruby gem is a great tool to quickly build a CLI (Command-line interface) app. [more inside]
Is module_function really the same as extend self?
In Ruby, a module can be used as logical entity. It groups methods at a module level without using the mixin facility — for example, the Base64 module… SEE MORE
Clean up old DB migrations
Do you clean your old DB migrations? I do and explain why here and share my Rake task code to make it easy for you to do so: https://codewithrails.com/clean-up-db-migrations .
36 Questions to Ask Your Future Software Employer
“Do you have any questions for us?” the interviewer asks. This is your chance to find out if the company if a good fit for YOU. [more inside]
From stained-glass master to software engineer: career changes often start w/ a mess
Changing careers is a long, often-overlooked process. But I want to share both the (linear) story and the (messy) history of how I became a software engineer. And like a lot of good stories, mine always starts with a lie.
What is Rack? A Ruby on Rails Webserver Interface
What is Rack application? What is middleware? How to use Rack in Ruby on Rails and webservers? Click here to Learn about Ruby Rack, middleware in detail.
Ruby on Rails Security: 8 Best Practices
A secure Ruby application framework is the best choice for many. Read this article to learn more about Ruby on Rails Security. Read here on Securing Rails Applications
How Ruby flattens block scopes! 🔥❤️🔥
In Ruby, block scopes are flattened with higher scopes… SEE MORE
BridgetownConf 2022 Talks Now Online
The first ever BridgetownConf, recently held online as a Zoom conference, was a success. Now all of the videos are available here on the BridgetownConf website, with content suitable for newbies to the framework all the way to more advanced examples. Enjoy!
New ArtQ Gem - Query Blockchain Contracts / Services for Art Collection (Meta) Data
Hello, building on the new ethlite gem that lets you call (read-only) blockchain contract services I put together ArtQ - a new command-line tool (and gem) that lets you query (pixel) art collections “off-blockchain” such as Moonbirds or “on-blockchain” such as The Saudis via JSON-RPC (in your termial / shell). See the artq gem page for more. It’s the early days ;-) - download for artwork layers upcoming. SOON!
Advanced Route Constraints with Rails
Examples and info on creating route constraints for those times when you’d like a little more control over your routes. [more inside]
Rubber Duck Dev Show Episode 66 | Top Down or Bottom Up Testing
Rubber Duck Dev Show Episode 66 is released! In this episode, we discuss the practice of testing top-down first (UI / Full Stack) or bottom-up first (Unit). We also cover usage and issues with “soft” deleting data in your application: https://www.rubberduckdevshow.com/episodes/66-top-down-or-bottom-up-testing/
RubyConf Mini 2022 Recap
Did you miss RubyConf Mini and are you wondering what happened? Were you were there and want a hit of nostalgia about that thing from DAYS ago? I’ve got you covered with my recap. [more inside]
Clamp strings, symbols, array or hashes
The clamped gem allows to filter values by a provided whitelist. For example, "apple".clamped(%w[apple banana]) # "apple". If apple is not part of the array, nil is returned. This is e.g. useful to filter values provided by user input. [more inside]