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.
Multi-tenancy in Rails
A helpful post on Multi-tenancy in Rails by Allerin [more inside]
We've Partnered With Heroku for the 2014 Rails Rumble!
We’re thrilled to announce that we’ve partnered with Heroku for the 2014 Rails Rumble! Read all about this and our other announcements on our blog.
First-Class Failure
I just posted a technique for handling failure when doing things like importing third-party data or generating reports.
A guide to learning from outdated resources
The Rails ecosystem moves fast, way too fast for print. If you’re like me, you want to learn the most recent version of your frameworks and gems. But the best resources are often a few versions behind. Once you build experience with an older version of a gem, how do you get caught up?
Tracking Sidekiq workers exceptions with Errbit/Airbrake
A quick hint for all those that think that it comes by default with Errbit/Airbrake. Tracking Sidekiq workers exceptions with Errbit/Airbrake
Connascence and Ruby 2 Keyword Arguments
When one Ruby method has to know the correct order of another method’s positional arguments, we end up with connascence of position. Ruby 2 Keyword Arguments help us reduce connascence, but there are some edge cases to be aware of.
Go, Ruby & SSE
I just launched Gorsse an experimental tool that allows you to use Server Sent Events in your Ruby web applications without any changes in your usual webserver. The tool relies on Go to handle many concurrent and persistent connections and communication is achieved through ZeroMQ.
Get to Know a Gem: 'Main' Chapter 1
Post looking into Ara Howard’s excellent gem Main. Check it out here
Button Loading Animations with jQuery UJS
I just released a new screencast on how to set up Button Loading Animations with jQuery UJS. Rails makes it super easy to add a spinner to your forms by just adding the disable_with data attribute. Hope you enjoy it!
Blogpost about pundit > cancan, first part.
If you like to read about why in our company we belive that pundit is a way better solution for compliacted authorization features than cancan (or cancancan for rails > 4.0) i have a first part of my blogpost for you : some groovy thing
Blogpost about pundit > cancan, first part.
If you like to read about why in our company we belive that pundit is a way better solution for compliacted authorization features than cancan (or cancancan for rails > 4.0) i have a first part of my blogpost for you : some groovy thing
Pronto can now lint HAML!
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it also lints your HAML with the help of HAML-Lint. Check it out: Pronto and pronto-haml.
3 Ways to Create Classes in Ruby
Out of the box, there are 3 ways to create classes in Ruby. Find out how to use all 3 options, and learn when to use one option over another.
Profile your cucumber tests!
Just released a new gem cucumber_characteristics to fully profile your cucumber test runs with the goal of understanding exactly where your test time is going. This is not a formatter and should drop into your existing setup transparently. [more inside]
MemFs v0.4.0 is out
MemFs is an in-memory filesystem for Ruby that can be used for your tests. This release brings some useful methods to Dir like the most wanted Dir.glob. Get it while it’s hot ! https://github.com/simonc/memfs
The structure of s-expressions
You will see the structure of s-expressions for language features supported by Ruby interpreters and the InfraRuby compiler.
Integration testing on different levels
I wrote a blog post about reusing the same test code on different levels (app logic, Web UI, API) [more inside]
Why we use React.js in our Rails projects
We’ve had a whole journey on how to do UI for Rails projects in Arkency. Starting from Rails views, then gradually switching to more JS (with JQuery), had a short adventure with Angular and now settled with React. [more inside]
Free Online Ruby Tutorials for Beginners
A pretty decent (I hope!) list of free online Ruby tutorials for beginners.
RailsInMotion Ruby/Rails Screencast Is Official!
It’s happening, we will soon have a new Ruby/Rails weekly screencast! I’m going to be launching in the next 1-3 months depending on how things go, but you can read the full story here: http://blog.motioninmotion.tv/railsinmotion-it-s-official
Ninefold introduces a free tier for Rails app hosting & deployment
You can get a 1.5 GB combined Rails app server in the US region for absolutely free. How does the free tier work? 1. Sign-up to Ninefold 2. Deploy a Rails app 3. Enter your billing details within 30 days 4. We’ll waive the first $50 of your monthly invoice - forever. Visit ninefold.com for more information.
High-Low Testing
I’ve just published High-Low Testing, a detailed look at my Rails testing philosophy. I address working at the poles of test abstractions in a Rails application in order to more easily manage dependencies. Doing so provides increased test speed and better OOP feedback systems, with minimal costs.
Nuts & Bolts #1: Create a simple Jekyll-like blog in your Rails 4 app
When I needed a blog system for my company blog, I had a hard time deciding if I should use Jekyll, another Rails blog engine or just build a simple blog functionality on my own. I implemented my own, see why and how I did it. [more inside]