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.
Why you should already use CoffeeScript
My blog article on how to use CoffeeScript in your Rails application. If you haven’t tested it yet, you’ll may find that it’s actually easier than you think :).
Introducing RGeo, A Geospatial Data Library For Ruby
Announcing the release of RGeo, a geospatial data library for Ruby. Should be useful for writing location features in Rails. Read about it here, including how it is different from GeoRuby and spatial_adapter. Also see the Github repo.
Rails Misapprehensions: REST is more than GET, POST, PUT and DELETE!
After CRUD is not REST! I politely discuss what REST gives us beside CRUD: Unique resources, representations and content negotiation, hypermedia and HATEOAS.
Rgviz-rails updated for Rails 3
I just updated rgviz-rails to work with Rails 3. It lets you draw powerful google visualizations against ActiveRecord models.
Getting to Know the Ruby Standard Library – MiniTest
There’s been a bit of chatter about ruby’s standard library lately, so I thought I might write about some of the more interesting parts. First off, lets have a look at minitest.
Mocking, History & the Ruby Community
Why does mocking exist? Where did it come from? How should mocks be used? Why don’t we as a community know this? Checkout out my thoughts on the subject here
Proxy your local web-server and make it publicly available over the internet
Sometimes when testing web applications it is needed to have them available from outside (i.e. in public Internet). For example some APIs you use may need to send callbacks. Or you just want to show somebody another cool feature on your development web-server. I’ve launched ProxyLocal that could make your local web-server publicly available over the internet.
Just released Mongoid::Paperclip - Enables file uploads with Mongoid using Paperclip.
Just released Mongoid::Paperclip for those that are interested. Quite a bunch of people have been looking around for a solution to upload files using Paperclip with the Mongoid ODM. This is my attempt to solving that problem, so here it is for anyone that’s interested.
Ruby advent calendar for 2010
I’m working on an Ruby advent calendar here is the link Ruby advent calendar 2010 I hope you enjoy it.
async sinatra with thin and rainbows in eventmachine
I just launched async sinatra benchmark between thin and rainwbows with eventmachine. Someone can explain because thin is more faster of rainbows with eventmachine and four work_processes? i have try also with one work_processes but the result dont’ change thin is also faster.
Receiving and Saving Incoming Email Images and Attachments with Paperclip and Rails 3
In this post I outline what’s needed to use the Paperclip gem and Mail gems to take the images received via email and store them in Paperclip.
cukecooker: writing cucumber scenarios with aid (cucumber IDE)
I just launched cukecooker. It lets you write cucumber scenarios in a browser with steps generated from your project. It features autocompletion and makes it easy to fill in parameters for step definitions.
Quickly Open Files and Libraries with Qwanrdy
Qwandry is a little tool for quickly opening all those gems, files in ruby’s standard lib, etc. from the command line. Is ruby’s Date.parse doing something weird? `qw date`. You can also tell it about other languages, and package locations if perhaps you want to use it with Node.js and npm or any other file repository. I also wrote up a little bit more about the motivation for Qwandry, if you’re interested.
The release of BigTuna - Ruby community rocks!
I just wrote a quick summary of what happened since me and @michalbugno launched BigTuna - a Continuous Integration server written in Rails. Should be a nice read for anyone thinking of giving back to the community.
Using simple blocks to clean up views
Introductory first part of a series, using blocks and metaprogramming to fancy and clean up your views.
rufus-jig
just released rufus-jig 1.0, a Ruby HTTP client that groks JSON (and has some helpers for CouchDB)
My Ruby Regrets
It’s not possible to be a Ruby guru if you only work with the language sporadically. But you can still save yourself from the mistakes Jeff Langr keeps making: Execute your small, ad hoc efforts no differently than large, well-planned projects. Jeff’s guest article “My Ruby Regrets” on RubyLearning.
Store cache in database with "activerecord_cache_store" gem
I’ve created gem activerecord_cache_store for storing cache in DB. If available options (file_system, memory_store) are not suitable for you (i.e: on Heroku platform), you should consider using this. Its Rails 3 compatible only. Please visit: RubyGems
The DSL gem is looking for a maintainer.
I’m looking for a new maintainer for my DSL gem. I’ve just got too much to handle right now and I feel like the gem is a great example of metaprogramming so I do not want to just let it die. If anybody is interested, contact me at c00lryguy@gmail.com.
Testing generators in rails 3
A simple overview about the new Rails::Generators::TestCase, a nice way to test yours rails generators, just click here
Effective Qt in ruby (part 3)
This is the third article in my series on writing Qt applications in ruby. I was planning to write about the declarative GUI system that I use in kaya, but a comment on one of my previous posts motivated me to take a small detour, and illustrate a very simple technique to extend a qtruby application with C++ code. Read more…
Counting Block Nesting Depth in Ruby
This problem recently popped up on the SF Ruby mailing list, in which someone needed to count the current block nesting depth during runtime. It turned out to be a fun and informative exercise in exception handling, thread-safety, and metaprogramming. So I wrote an article :-) [more inside]
Asset ID – Asset stamping and uploading to S3 for Rails 3
I recently released asset_id, a gem for Rails 3 that uploads all your static assets to Amazon S3 with a unique ID encoded into the path of the asset and the correct caching headers set. [more inside]
doctest for Ruby
Rdoctest provides the functionality of Python’s doctest in Ruby. It scans your Ruby files for RDoc code blocks and tests them, improving your documentation and test coverage at the same time.