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.
Gem of Week #17 - datapak gem - work with tabular data packages (.csv files w/ .json)
Hello, over at the Planet Ruby the Gem of the Week series continues with #17 - datapak - that lets you work with tabular data packages (.csv files w/ datapackage.json) using SQLite (w/ ActiveRecord). Full article. Cheers.
Script Persistence: Writing fail-safe, idempotent Ruby scripts with PStore
PStore is an super-easy persistence layer for building scripts that you can run, and run again without fear of failure or duplicate execution. [more inside]
aquam an Object-Oriented Finite State Machine for Ruby
aquam helps you to define Finite State Machines with a very simple DSL which also will validate events, states and the transition between them. [more inside]
How to find out which gem a Rails helper comes from
A quick example of how to find out which gem a Rails helper comes from when the method name is ambiguous, such as icon. [more inside]
Live — Code Dojo: Game Grid
We’re currently live streaming our company Code Dojo on YouTube: https://www.youtube.com/watch?v=_xchz917c9w
Bring CommonJS modules to your asset pipeline with browserify-rails
You don’t have to disable asset pipeline in your Rails application in order to use CommonJS module loading in your JavaScripts. Find out how to do so with browserify-rails gem.
Migrating Facebook apps to Open Graph 2.0
Migrating Facebook apps and Facebook connect gem to Open Graph 2.0 http://warolv.net/blog/2015/04/19/migrating-facebook-apps-to-open-graph-2-dot-0/
RAILS AND HTTP ERROR STATUS CODES
A post which digs into rails codebase to look at how HTTP status code is set for each of the exceptions that are raised.
Quick static pages in Rails with High Voltage
The most important pages you need when you create SaaS apps are static pages. When you work on lots of greenfield projects, you’ll create these pages the same way, every time. There’s nothing wrong with that, but you can build these pages faster with High Voltage.
Scalability of Spree Commerce
In this article, we demonstrate the approach we take to Scaling Spree Commerce and what you should be doing to understand your Ruby systems constraints and the points at which you’re going to need additional capacity.
Where is this method defined?
An article going over the Method object in Ruby. How to find where your method is defined and other meta details about it.
New Open Source Rails ERP
I have created an open source ERP system based on Ruby on Rails you can find it here https://github.com/boriscy/bonsaiERP the software is in spanish right now but the source code is in english. You can check the site and also test drive bonsaiERP
SEO basics for Rails developers
My colleague Paweł posted some tips if you are interested in SEO on Rails.
The Event Store for Rails developers
If you would like to experiment with Event Sourcing in your app check out our Event Store
Why Rails 5 / Turbolinks 3.0 / Action Cable matter, and why @dhh was right all along
I just posted some thoughts that came to my mind after watchint this year’s RailsConf keynote…
SpeakingURL - Generate a slug – transliteration with a lot of options
SpeakingURL - Generate a slug – transliteration with a lot of options is now available for Ruby on Rails on RubyGems [more inside]
Accessibility - the Necessity Often Forgotten
When it comes to accessibility in web design and development, many app developers don’t give much thought to this issue. Read on to find out what you need to know about accessibility standards and what factors you must consider when planning features for your app. https://netguru.co/blog/accessibility-web-mobile-apps
Pattern to pattern: Template Method & Strategy
Knowledge of design patterns is useful, but things can often get confusing. In this post I compare the template method pattern with the strategy pattern and explain their similarities and key differences. Hope you find it useful! Check it out here.
How do we perform system integration tests
I wrote an article showing how we run integration tests within Shelly Cloud with a short intro to RSpec formatters https://shellycloud.com/blog/2015/04/how-do-we-perform-system-integration-tests
Ruby on Rails and Cloudinary - image management for an amazing web-dev framework
Rails towards version 5.0, is probably still the best web development framework around. This article explains how image management in Rails is solved using Cloudinary’s cloud-based solution. Ruby sample code included for image upload directly from the browser, and for embedding dynamically manipulated images with optimized delivery.
The difference between instance_eval and instanc_exec
Learn how and why instance_eval and instance_exec are different in a walk through of some code from FactoryGirl.
Is BDD for you?
I wrote an article explaining where behavior-driven development came from and what problems it can solve if applied correctly. Hope you find it useful. Read it here.
Improved Ruby Snippets for Sublime Text
The ProductiveSnippetsRuby package adds snippets for common Ruby idioms. It is intended as a replacement for the stock Ruby snippets and avoids gem specific code (e.g. code that is only meant for Rails). You can install it via package control or by cloning the github repo.
How to select database records in an arbitrary order
In Rails, it’s easy to get a bunch of records from your database if you have their IDs. But what if you wanted to get the records back in a specific order? Maybe your search engine returns the most relevant IDs first. How do you keep your records in that order?
Help Us Build Rails Video Tutorials For You
This is an introductory post about a following video series that we’re trying to build. The plan is to record a video tutorial on a small project for capturing form data (as a service). The purpose of this post is to gather some feedback pre-release so we can build a better video series. Share your thoughts!