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.
How Ruby Borrowed a Decades Old Idea From Lisp
I just posted another - the last - free excerpt from “Ruby Under a Microscope:” How Ruby Borrowed a Decades Old Idea From Lisp. I’m planning to finish up the eBook before RubyConf starts on November 1st.
How You Can Extend RSpec And Use Cucumber "Given, When, Then" In Your Test Examples!
Do you know that RSpec can be extended with your own methods? Do you know that you can use Cucumbers “Given, When, Then” in Rspec? No? Then you should read How RSpec Can Be Extended and see for yourself!
Cryptic Dollar Variables & Their Meanings in Ruby
Over the weekend I came across a piece of code that had a $. variable in it. I was intruiged and spent an enjoyable hour playing with global variables. Ruby has quite a few cryptic dollar variables and I’ve written about them and attempted to demonstrate using many of them in Cryptic Dollar Variables & Their Meanings in Ruby
"Modding out" in Ruby
I just finished a technical blog post for “modding out” in Ruby:
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]
Branching, Merging and Restoring branches with SVN.
Branching, Merging and Restoring branches with SVN..
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.