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.
Drawers
I made a way to organize your rails apps in to a way that makes sense. A way to organize things into various drawers. [more inside]
Replace the boring rails scaffold
With scaffold_pico you can create your own pretty administration in a second. [more inside]
Gem for testing APIs with rspec
rspec-api_helpers is a real gem that makes it easier for you to test your API responses in zero time. JSONAPI and regular JSON are supported but it has a modular design which means you can even write your adapter/
New gem read_source
An alternative to the method_source gem with the ability to open any Ruby method right into your VIM editor. https://github.com/danielpclark/read_source
Webpack in Rails 5.1
Webpack will be available in Rails 5.1, in this screencast learn the basics of Webpack
Why We Chose Rails for Our MVP
I wrote a short piece on Medium about why I always come back to rails when I want speed and sanity. Check it out here: Our Path to MVP: Choosing Rails
Pokrex: web app built with Rails 5 + ActionCable + ReactJS
Pokrex is an online planning/pointing poker tool, which has clean UI and easy/friendly to use. It’s built with Rails 5, using ActionCable to do most of the communication and ReactJS for page rendering.
Benchmarking communication between Elixir and Ruby
Benchmarking communication between Elixir and Ruby described in last 3 posts. [more inside]
Cmd2Json: covert output to json for atomic logging
cmd2json coverts all output and the exit status (+host/timestamp/custom tags) of a command into a single json blob that can be logged atomically. Great for crons or other command output you want to log.
Differences in version handling between RubyGems and npm
Gareth Visagie talks about the differences in version handling between RubyGems and npm and the complications of making a tool work for both.
How to Use Any Gem in a Rails Production Console
If you’ve ever needed to use gems like benchmark-ips or awesome_print in production and they’re not available in the already bundled gems, check this post out!
Tinkered: Action Cable x WebSockets
Action Cable provides an interface for client-side JS code and server-side Rails code that allows to define a channel for sending and getting data streams. [more inside]
Get to know your twiddle-wakka
That squiggly operator in your Gemfile, how does it work? Learn all about the pessimistic version constraint pattern in Rubygems and how to use it correctly.
Natural Language Processing in Ruby
The Ruby Language is presumably not the first choice for people doing scientific research. Fortunately there are some attempts (e.g. SciRuby) to change the situation, but Ruby still remains in our opinion underestimated. [more inside]
Rails feature that you've never heard about: schema cache
In the new series of posts, I write about Rails features that you have probably never used before. [more inside]
Keeping Data in Sync with ActiveRecord::UpdatedAt
ActiveRecord does not touch updated_at when calling update_all, update_column, or update_columns. We realized that we rarely ever have a reason to modify data WITHOUT touching updated_at so we’ve enabled the touching behavior by default using the active_record-updated_at gem.
TUNS - Twitter Unfollower Notification Service
just a twitter service written in RAILS. [more inside]
Ruby 2.4 adds Comparable#clamp method
In Ruby 2.4, clamp method is added to the Comparable module. This method can be used to clamp an object within a specific range of values. [more inside]
Go Full Stack Rails - A Pipeline of Functional Transformations
This post is part of a series that aims to discuss matters around a full-stack application written in Rails and ES6, but it goes beyond the app itself. Follow me as I write a functional parser in JavaScript using TDD. There’s also some discussion around how we should deal with JavaScript in Rails apps.
Rails security essentials
With all the high profile hacks in the news lately, I thought an overview of Rails security essentials would be timely.
[Screencast] Mail Previews and Templates
Using ActionMailer::Preview preview email samples without sending them. Using Zurb’s Foundation for Emails, learn how to use email templates with the Ink framework. https://www.driftingruby.com/episodes/mail-previews-and-templates