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 to write (and test!) a gem that adds files to the Rails asset pipeline
I just posted an article over at Rake Routes on how to write and test a Rails asset pipeline gem.
The Ruby Refresher
If you’re a rusty Ruby programmer, looking for a refresher on the Ruby language, you might enjoy this document: The Ruby Refresher.
You got NoSQL in my Postgres! Using Hstore in Rails
Wouldn’t it be awesome if we could just save data in a database like a hash? Well now you can, with hstore & Rails. Hstore is a key/value schema-less datastore in Postgres, use it just like a hash…(more)
Ruby 2.0 Enumerable::Lazy
My Enumerable::Lazy patch was accepted into ruby trunk few days ago. So, in ruby 2.0, methods like map, select, grep, etc can be lazy chained. More on this in my blog post.
Add Kalendae to your Rails App with the Kalendae Assets gem
Here’s a tutorial on how to add Kalendae (that new JavaScript date picker) to a Rails app using my new kalendae_assets gem.
Super Fast JSON Parser
I just released a JSON parser under the name of Oj that is 10 to 20 times faster than both the Yajl and JSON::Ext JSON parsers. Check out the gem and the Oj::Doc class. It uses a different API than others and that allows for implementing a parser that is much faster. Read more
How to write MiniTest::Spec Expectations
I’m a fan of MiniTest::Spec. It strikes a nice balance between the simplicity of TestUnit and the readable syntax of RSpec. So here’s how to write MiniTest::Spec Expectations.
Different User Agents per Cucumber Scenario
Use different User agents per cucumber scenario. - Isotope11 Blog
Why I Use GEdit for Ruby programming and why you should too...
I’ve compiled a list of od the reasons I use GEdit and I’d like you share it with you. So, here is the list.
Wroclove.rb Links
There were some great presentations at wroclove.rb and Michał Kwiatkowski is gathering a list of all the things you missed.
MsTranslate Api wrapper
The library is a simple API in Ruby for Microsoft Translator V2. The Microsoft Translator services can be used in web or client applications to perform language translation operations. Github repos. I hope it’s useful :D Bye.
Introducing EspnRb - a ruby wrapper around the ESPN api.
I just pushed my latest version here: EspnRb. You should check out my blog post introducing you to the library, have fun.
bahia - now with rubinius and jruby support
bahia 0.5.0 just came out with rubinius and jruby support. bahia acceptance tests your commandline apps in test frameworks such as rspec, test-unit and minitest. Check it out!
CerealEyes v0.0.1
I just released the first version of a proof of concept serializer / deserializer based on GSON.
StoreConfigurable For ActiveRecord
StoreConfigurable - A zero-configuration recursive Hash for storing a tree of options in a serialized ActiveRecord column which includes self-aware hooks that delegate dirty/changed state to your configs owner. Read more
I love Ruby because ...
I really love ruby language, and so do many folks using it. So, this is an attempt to collect resons for that from everybody. Knowing what ticks for others in language, can be a good learning exercise. Read more
Understanding ActiveRecord::Base.explain in Rails 3.2
Rails 3.2 introduced “explain” into ActiveRecord::Base. A number of posts have already covered how to use and configure it; I wanted to help developers understand why “explain” is useful.
usp.ruby Archives for your e-reader
usp.ruby is “a text-only mailing list for Unix systems programming in Ruby”. The content is written by Eric Wong (author of Unicorn) and is a great resource to learn about Unix programming without digging into C code. I took the plain text content and formatted it for iPads, Kindles and the like. You can grab your format of choice on Github.
Suggestions for content on "rubyonrails.io"
I just brought the domain “rubyonrails.io” and would like to invite the community to provide me with some suggestions to make the best use of this domain.
A Unix Shell in Ruby - Login Shell and the PATH
In continuing my series on implementing a Unix shell in pure Ruby code this article covers everything you need to know about environment variables and the search path. Read it.
Kalendae in the Rails asset pipeline
I liked the Kalendae javascript date picker so much that I wrote the gem Kalendae Assets to make it available on the Rails asset pipeline.
A different approach to Rails mass-assignment security
Read this blog post for an approach to mass-assignment security that:
Magic support of Google AJAX indexing for your apps
We’ve just released initial version of two gems: Hashbang will (almost) transparently enable Google indexing for your AJAXified pages. And it’s based on Sunscraper which is WebKit AJAX crawler binding. Read more
shell_command v0.2.2 released
shell_command tries to provide a better interface for communicating with commands you spawn on the shell. The API is simple and small, and examples are included in the README. Notable features for this release are Rubinius 2.0.0 support (in 1.9 mode).