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 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.
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.
Corey and I discuss our approaches to TDD and refactoring. http://www.rubytestingpodcast.com/corey-haines
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.
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.
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!
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.
The ActiveRecord Union gem allowed me to quickly build a newsfeed that had complex requirements. [more inside]
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.
Step by step instructions for setting up Google Analytics on a Rails 5 / Turbolinks app.
In this article Using racecar to Consume Kafka messages in Rails , I setup a simple producer using waterdrop gem and consume the messages using racecar. I also illustrate how to troubleshoot problems when running multiple kafka consumers consuming messages from the same topic using kafkacat.