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.
Separate your concerns
Why we should bother, when your files/models grows too big? I just wrote post in response to Keep your privates close.
How To Gemify Assets for Rails
If your rails application relies on externally maintained assets, Rails 3.1 and the asset pipeline make it easy include them as proper dependencies in your Gemfile. The catch is that they must be available as gems. Here’s a look at how to gemify assets.
[vid] Ember Data - Persisting Data Into Rails
By request, here’s a look at how to transfer your EmberJS model data back and forth from the Rails database.
Updated LazyGem - Changes and a bug fix.
I just updated LazyGem to support some changes on RubyGems.org and 1 bug fix.
Amazing Graph Visualization with Sinatra and little JavaScript
We use Ruby to get the data we need from Neo4j and let Processing.js make it look amazing.
m: a test/unit test runner that can run tests by line number.
Read about how to use it here! It’s metal.
037 Ruby Rogues Versioning and Releases
This week the Rogues talk about different methods of versioning projects, the advantages and disadvantages of several different schools of thought on the subject and they share a few words on release processes as well.
The Sprockets::BlackCoffee Gem
Yes, sometimes it may be OK to render your CoffeeScript files using the –bare option. Most notably, in test spec helper files under Jasmine. I give to you the sprockets-blackcoffee gem.
Command Line Reporter 2.0 Released
The latest version of Command Line Reporter now supports table formatting of your data. The DSL is very similar to writing HTML tables making it easy to build sophisticated reports. The gem is available on rubygems.org with source on github
Getting started with Ruby and the Neo4j Graph Database
Don’t let the “4j” fool you, I show you how to use Ruby with Neo4j in this blog series.
Backbone.js vs Ember.js
My thoughts on Backbone.js vs Ember.js. I have been using Backbone.js for a while and recently dived into Ember.js!
An Exhaustive Explanation of Minimax, a Staple Game AI Algorithm - Ruby tic-tac-toe included
I put together a description of minimax and used a Ruby tic-tac-toe game as an example implementation.
Ruby Object Model - example in a 3D perspective
The document at http://www.atalon.cz/rb-om/ruby-object-model/ now contains an elaborated example using SVG.
Blog Post: Improve Your Work Environment
As a programmer, you should have the best work environment possible. Go read my thoughts on the topic if you’re interested.
braumeister.org – An online listing of Homebrew packages
braumeister.org is an open-source Rails application that lists all MacOS X packages available via Homebrew. Why may this be interesting for the average Rubyist? First, braumeister.org is a Rails application and it’s open-source, so everyone is free to contribute. Second, Homebrew itself is driven by Git and Ruby, and lots of Rubyist are running Macs, so there’s a good chance that you’re interested in both, Ruby and Homebrew.
[video] A Brief Intro To EmberJS
We spend a few minutes learning about Ember.js.
Up and running with RefineryCMS edge, Rails 3.1, and Zurb Foundation framework
I’ve posted a couple of articles on how to get the master branch of RefineryCMS working with Rails 3.1.3, including what to expect and how to get around a couple of gotcha’s along the way: Basic Refinery and Rails setup and Adding the Refinery Blog engine and Zurb Foundation framework
A Primer on Ruby C Extensions
A simple introduction to building C extensions in Ruby: A Primer on Ruby C Extensions
Gon-sinatra - your Sinatra variables in your JS
I just created gon-sinatra. The same idea as gon, but for Sinatra
Ruby Float quirks
Working with Float values sometimes really leads to unexpected behavior. In this article I cover how to cope with weird Float problems. [more inside]
Ruby DataMapper Status
Learn (more) about the development of DataMapper 2.0: solnic.eu/2012/01/10/ruby-datamapper-status.html
Another rubygem to summarize text
I just spent a few days cleaning up a ruby interface to Open Text Summarizer that I had written a year or so back. https://github.com/deepfryed/ots [more inside]
How to create local copy of Rails API doc and Guides
There are many occasions, when you’ve wished to have an offline version of the API document. For instance when you face connectivity problems or network issues and you just can’t get online, or even while traveling in airplanes, as we know, internet accessibility is not always possible. In this post I’m showing you how to generate your own copy of Rails API doc and Guides.
Ruby On REST 3: One Model, Multiple Representations!
In the 3rd post of the Ruby on REST series we learn a bit more about resources and why and how one particular model can be represented in multiple contexts.
New release of rglpk - the ruby linear programming library
Have you ever needed to solve a linear program in your ruby app? Well, if you have, you know that rglpk (pronounced Wriggle-Pick) allows you to use the power of the GNU Linear Programming Kit (glpk) from within ruby. The latest version fixes some memory leaks that hindered performance.