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.
Building football league data model with Rails and Neo4j
Hey, just wrote new article about using Neo4j in conjunction with Rails.
Netzke got an update: Rails 4.2 and Ext JS 5.1
Netzke found a sponsor and is now up-to-date with latest Rails and Ext JS: http://writelesscode.com/blog/2015/03/18/netzke-got-an-update-rails-4-2-and-ext-js-5-1/
Upgrading a project to the latest Ruby on Rails version
Every time you start a new Ruby on Rails project, you use the latest stable released version. It doesn’t take long, until you can’t upgrade your project to a new Rails version. Why does this happen? How can you avoid this trap? This article will give you some hints.
Neural Networks with the NMatrix gem
See how handwritten digits can be recognized by a Neural Network implemented in Ruby.
Ruby Conference - Erie Day of Code
Erie Day of Code is a one-day event taking for Ruby on Rails web developers, computer scientists, creatives, and overall tech enthusiasts! Through a series of talks, workshops, open discussions, and a catered lunch, we intend to teach and learn about the progression of web development and open source not only in Erie, Pennsylvania, but globally. Read more
At least do Regression driven tests
You want to test your code and don’t know where to start? Regression driven tests might be a good place to start.
Applying UI and UX to the command line
In this design/development mashup, I review some common UI and UX principles and explain how I applied them to Capistrano, a decidedly geeky command-line tool. The result is my recently released Airbrussh gem for beautifying Capistrano output. Take a closer look.
menu_txt - manage your site's menus in plain text
menu_txt provides a simple plain text syntax for menu trees, allowing your non-tech folks to edit your website’s menus without knowing how to write code.
Terminal Emojify
Nowadays many projects use emojis as part of their contribution workflow. Commit messages are, therefore, full of these wonderful icons which, unfortunately, are not accessible in our terminal. Terminal Emojify is here to change that.
Bootstrapper: gem for Ruby on Rails apps that generates file templates for you
We’ve just shared a post about CSS/Sass rules and architecture. If you like the pattern described there, check out Bootstrapper, our open source gem for Ruby on Rails apps that will generate file templates for you.
Reading Rails - Time Travel
Did you know that Rails comes with its own time machine? What about its own tiny stubbing library? Read more
Understanding State Machines
Ever wondered what a state machine does? Or how to know if your Rails application needs one? Check out this post which unpacks the theory behind the mysterious CS state machine.
RubyGems Plugin Generator
Last week I published a post explaining how to create a plugin for RubyGems. Now I created a gem that automates those steps and generates a plugin for you.
Gem of Week #12 - logutils gem - yet another (lightweight, simple) logging library
Hello, over at the Planet Ruby the Gem of the Week series continues with #12 - logutils - yet another logging library - that lets print all “standard” log messages such as debug, info, warn, etc. and lets you add event handler to auto-save logs in a database and so on. Full article. Cheers.
No Date.today? It's DateTime!
Time is hard. Jay Hayes walks you through time zones in Ruby on Rails using datetime.
How to migrate Rails application from Ninefold
Ninefold decided to close their App Deployment functionality and the US region. This means that you have to migrate your Rails application before 24 May 2015. Read more
Dead_simple_authorization - A very simple authorization gem
Dead_simple_authorization is a simple gem for authorization. The main concepts around dead_simple_authorization are: users, resources and permissions. Using a couple of simple naming conventions, it organizes the way in which access to a resource (an activerecord model for example) by a user (e.g. a web application’s user) is checked.
Authoraise - tiny authorization gem that prevents false negatives
Authoraise is not like other authorization gems because it doesn’t enforce any kind of structure or vocabulary on your app. Its only job is to wrap and audit your boolean expressions that you use for authorization, in order to prevent false negatives.
Tracing global variables using trace_var
Let’s explore the Kernel#trace_var method, which lets you trace global variables in your program.
Module#added
The added gem is a small library that unifies Ruby’s extended, included and prepended module hooks into a single added one, which will be run for all instances that include the module.
More UJS fun with Accordion Content
I’ll show you how to use UJS to dynamically load content directly from the server and use Bootstrap’s accordion to expand your page with the new content.
Conditionals: Style and Design -- Design is Refactoring
Last week’s post on Refactoring Away Conditionals got a lot of feedback, both positive and negative. This is fantastic! This week I want to continue the conversation by discussing the criticisms and alternatives that people provided. Along the way, maybe I’ll say something interesting about the difference between Design and Style.
Release simple_paginate gem
We saw some websites using will_paginate or kaminari for pagination, but they just need previous and next page navigation, will_paginate or kaminari is overqualified. Read more
Introducing the tco_method gem
Earlier this week I published the tco_method gem to help simplify the process of compiling select Ruby code with tail call optimization enabled in MRI Ruby. Take the gem for a test drive, view the project on GitHub, or check out an introduction to the gem in my latest blog post including background, example usage, interesting problems encountered during development, and future opportunities.