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.
"Modding out" in Ruby
I just finished a technical blog post for “modding out” in Ruby: http://blog.mojotech.com/post/31729591313/modding-out-bob
Why rubyists ignore concurrency?
A discussion about why the ruby community at large go through great lengths to ignore concurrency.
Replacing rvm with rbenv using homebrew
Got rid of RVM with RBENV RVM with RBENV.
Sportbook - Open Source Football Betting Pool Ready for Champions League 2012/13 (in Rails 3.2+)
I’ve reconfigured the Sportbook app with new game fixtures for more fun for the upcoming Champions League 2012/13. You’re welcome to add your own game fixtures. More example events include Austrian Bundesliga 2012/13, México Primera División Apertura 2012, and others. More info. Cheers.
A slim library to work with oEmbed format
I’ve crafted oembed gem. It has no external dependencies at runtime and helps you to build a client for any oEmbed provider. Take a look on examples.
Getting the jasminerice & requirejs-rails gems to play nicely together
Pretty niche setup at the moment, but if you’re using RequireJS in your Rails project (using the great requirejs-rails gem) and want to test your modules using Jasmine (using the awesome jasminerice gem) then you’re probably going to run into some issues… [more inside]
A hundred network stories
I just deployed a network security tool—Aoandon—for my students and anyone who might be interested. Have fun!
Testing binary rubies with RVM development version
I have just pushed binary rubies installation support, this will be released shortly (week or two) with RVM 1.16.0. [more inside]
Version your Rails views (show.v1.json.jbuilder, show.v2.json.jbuilder, ..)
Easily version your Rails views with VersionCake (e.g. edit.v1.html.erb, edit.v2.html.erb, ..). If a view for the current version doesn’t exist, VersionCake automatically degrades to the previous view version. A specific render version can be passed via the request header or query param. Perfect for API/jbuilder views. Can also be applied to any other view type (html erb/haml, etc).
raise “hell”: Better Programming Through Error Messages
Exceptions suck, but they don’t have to. Learn how to program better through error messages, and see how improved messages are going to rock your world in Rails 4.0.
EAV behavior with ActiveRecord ORM and HydraAttribute
I’ve just released the hydra_attribute 0.4.0 gem that allows to create or remove attributes for the model in runtime or assign unique attribute list for each record. Also it is possible to use query methods for selecting or grouping records by that attributes. There are a lot of examples on the github wiki page including database structure that this gem creates.
5 Reasons You Should Use ri To Read Ruby Documentation
Over the last few months I’ve started using ri more and more. I put together a list of the compelling reasons that I prefer it over Google Search.
Introducing Pogoapp
We’re building a new app hosting platform with Heroku REST API/buildpack/Procfile/S3 compatibility, running on dedicated servers. This blog post is as an introduction to what our architecture looks like and why. We’re looking for a handful of trial users to start kicking the tires and giving us feedback.
Learning Chef
In my new blog post, I write about how I learned the basics of Opscode Chef and provide some tips on how to get started. As Ruby plays a key role in Chef, I wanted to share this piece with you.
using sublime text to view helper methods from within irb
I wrote quick blog post about adding a method to open helper methods from within IRB in sublime text.
2012 Rails Rumble - Official Registration Dates & Competition Details!
Official registration dates & competition details for the 2012 Rails Rumble are now live! - Please help spread the word!
Migrating Your JRuby Rails App Using warbler-exec
Using warbler-exec, we can use the .war file itself to run the migrations, without needing to transfer another copy of the rails app specifically for this purpose. Here’s how.
Linear Regression Using Ruby
Short introduction to linear regression that walks you through the basic math and shows you the Ruby code necessary to perform some basic linear regression http://www.sharethrough.com/2012/09/linear-regression-using-ruby/
Game of Life Viewer
I just released a Game of Life Viewer (life_game_viewer on RubyGems) that you can use to view the behavior of your Game of Life implementations and experiment with different data sets. It comes with a sample implementation and data set that you can see by running the ‘life_view_sample’ executable installed with the gem. Github project page is at https://github.com/keithrbennett/life_game_viewer, blog article at http://www.bbs-software.com/blog/2012/09/05/conways-game-of-life-viewer/. The application must be run in JRuby, as it uses Java Swing for its GUI.
Visitor Tracking without User Signups in Rails
I recently needed to track user behavior to allow them to update resources but didn’t want them to have to create an account. To accomplish this I built a visitor class and used cancan to manage permissions. I’ve written a short writeup about Managing Resource Ownership Without Creating an Explicit User Account
Web Fonts Performance: Making Pretty, Fast!
An in-depth look at the performance and optimizations behind web fonts, and Google Web Fonts in particular.. Web fonts are here to say, and that’s a good thing - yes, even for performance!