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.
Ruby is a Multi-paradigm programming language
Even if Ruby is a fully Object-Oriented Programming language, it can also be interpreted through some other specific prisms. [more inside]
I Love Ruby free PDF version released
Here is the free PDF version of I Love Ruby
Rails 6 unnoticed features
Rails 6.0.0.beta1 is out and you may have already tested it. We all have heard about the main features such as multi-database connectivity, Action Mailbox & Action Text merge, parallelized testing, Action Cable testing etc. But there’s also a ton of other cool features that I found interesting. [more inside]
Weird Ruby
Hi there - I’ve put together a list of fun stuff I found in ruby while writing the prettier plugin
safestruct gem - Safe Data Structures (Array, Hash, Struct) - Say Goodbye to Nil
Hello, I’ve put together a new safestruct gem / library that collects safe data structures (array, hash, struct) and lets you say goodbye to null / nil (and maybe). Say hello to zero :-) to fix the billion dollar mistake. Stay safe and set all your variables to zero - always, always, always. Cheers. Prost.
Symbol in Ruby
A symbol is a uniq instance of the Symbol class which is generally used for identifying a specific resource.. SEE MORE
Signup and Login using Google Oauth 2 API in Rails 5.2
No devise required! Signup and Login using Google Oauth 2 API in Rails 5.2 You can focus on your application logic instead of wasting time on user management.
TDD and Refactoring with Corey Haines | The Ruby Testing Podcast
Corey and I discuss our approaches to TDD and refactoring.
Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #1 Tic-Tac-Toe
Hello, I’ve started a new ruby quiz for secure (crypto) contract blockchain scripting. Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract. Let’s use the “Creating a Tic-Tac-Toe Smart Contract” tutorial and “real-world” sample contract from the EOS.IO blockchain. The challenge: Code a contract for a 3x3 tic-tac-toe player vs player game using sruby :-). Can you do better? Post your code snippets (or questions or comments) on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Cheers. Prost.
Testing JavaScript... with Ruby!
One of the many projects we are building is a JS client-side library, which runs in a pretty challenging environment: has to support pretty much every browser in existence and interacts with a gaggle of external scripts and services. Since Codest is primarily a Ruby shop, that’s what we chose to exercise it with - and here’s how you can, too.
Three Useful Data Migration Patterns for Rails
Do you know what’s the best way to write, maintain, and run migrations that alter the data in your production database? In this article we will talk about three different patterns for writing and maintaining your data migrations. [more inside]
Everything You Need to Know About I/O In Ruby
What is IO in Ruby? How does it help you? What are file descriptors? Discover the answers in this new RubyGuides article:
Carve your controllers like Papa Carlo
This post introduces a new gem–Rubanok–which could be used to slim down your controllers by extracting params-dependent logic (such as filtering, searching, sorting, etc.) into its own abstraction layer. For better readability, maintainability and testability! Vivat!
DIY - Create your own Rails Generator
Hey guys, I just wrote my first tech blog post ever! It would mean a lot if you would read it and give some feedback! [more inside]
How network programming is represented in Ruby
In this article, we’re going to see how Ruby implemented network programming in its Core and Standard libraries.. The implementation surprisingly and naturally fits to the language features SEE MORE
Ruby on Rails API Authentication
If you are building any kind of API with Ruby on Rails you are going to have to handle authentication if you want to secure your endpoints. If you’re using devise with its pre-built authentication you’ll see that when it comes to managing the Authentication of an API endpoint devise falls slightly short. In this post we will show you some of the options you have with securing your Rails API endpoints and how you can integrate them into devise.
Come wield Ruby for good in the SF bay area!
Write open source to make the world a better place! Join us at Ruby by the Bay March 29 – April 1 in Marin headlands at NatureBridge. Programmers come together a long weekend to write software for non-profits and community organizations. (Most projects are Ruby, but there’s often JavaScript or devops or design projects as well.) This is not a hackathon! Projects are scoped with our nonprofit partners before the event, and evenings are reserved not for code but to play games, karaoke, or sit around a campfire. [more inside]
Simplifying Complex Queries with the ActiveRecord Union Gem
The ActiveRecord Union gem allowed me to quickly build a newsfeed that had complex requirements. [more inside]
Page Objects in Rails
For integration tests/feature specs that are noisy and hard to understand, Page Objects can be a handy way to improve the signal-to-noise ratio.
Rescue from errors with a grace
Tired of having too long or complex rescue instructions? Try this pattern
Small, Smart, Secure, Safe, Solid & Sound (S6) Ruby - New Org (Incl. Red Paper, ...)
Hello, sruby - Small, Smart, Secure, Safe, Solid & Sound (S6)
Ruby now has a new home. See the
/s6ruby org(anization) at github. The new org incl. the “Red Paper”, the Universum world computer runtime, sample contract scripts, the Programming Crypto Contracts step-by-step book / guide and more. Last but not least - thanks to Matz for Ruby and for the sruby tweet! Cheers. Prost.
Make Delegated Methods Private in Rails
Calling delegate in the private visibility scope of a class has no effect in Rails. Rails 6 has a way to allow making delegated methods private, but read on to see how this can be done in Rails 5.2 or earlier:
Interview with Terence Lee
Chris and Jason had Terence Lee on the Remote Ruby Podcast to discuss how Terence got into programming and found himself on The Ruby Core Team, mruby, conference organizing, and more. Listen to the Remote Ruby podcast episode
AnyLogin - gem to login as any user (now with one more cool feature)
was updated. I think one of the most useful gem for development. I forgot when last time I’d entered email/pass in login form in dev mode.. [more inside]