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.
Released Miso 0.3.1, which adds GraphicsMagick processor.
Miso, the unified API for simple image operations commonly used on the web, has gained a GraphicsMagick processor in version 0.3. Thanks to Paul Vaillant for the contribution.
Markdown reference for your projects
I just made a succinct and simple markdown reference you can include on your projects. human-markdown-reference is to markdown what human-textile-reference is to Textile.
Kill Trailing Whitespace With Code-cleaner!
I just released code-cleaner gem which is useful for removing trailing whitespace and adding missing \n. It has advanced whitelisting & blacklisting rules, so it’s clever enough to ignore your non-ruby files as well as your vendored dependencies. It can also add missing encoding declaration for Ruby 1.9 if you specify --encoding=[my-enc] and much more. [more inside]
[ANN] Ruby Challenge for Newbies by Peter Cooper is now live
The Ruby Programming Challenge for Newbies #5 by Peter Cooper is now live. You can submit your solutions before 20th Jan 2010. Participation is free and you can win attractive prizes.
Nezumi - iPhone app to manage your apps on Heroku
I just launched Nezumi which allows you to administer your Ruby apps on Heroku from your iPhone. It can be found in the App Store.
Blueprints 0.4.0 released
Version 0.4 of my factories and fixtures replacement gem Blueprints. Changes include refactoring some insides, blueprint method on active record object to update it’s attributes and passing options hash when building a blueprint.
Mongo3 - Rule your mongoDB clusters!
Just dropped a preview release of mongo3. An admin console for your mongo databases. Not much functionality just yet, but will get the idea…
CoffeeScript, a Little Language with a Pure Ruby Compiler
CoffeeScript is a little language with a Ruby-esque syntax that compiles into the good parts of JavaScript. The compiler uses vanilla Ruby classes for the lexer and code generation, and Racc for the parser. If you’ve ever wanted to use Ruby to experiment with a little language, it’s a good example to take a peek at.
has_scope and responders released
We, at Plataformatec, just released two new open source tools: has_scope and responders, both extracted from Inherited Resources. has_scope allows you to quickly map controller parameters to named_scopes and responders is a repository of Rails 3 responders, which can already be used within Inherited Resources. As conclusion of this refactoring, Inherited Resources finally reaches 1.0. Read the blog post to catch up all changes.
Generating Thousands of PDFs on EC2 with Ruby
For about two months, we’ve been working on a static website that exposes the results of complicated economics model to non-economists. We decided to make the site static because of the overhead involved in computing the results and the proprietary nature of the model. We would simply pre-generate the output for all valid permutations of the inputs. However, on a single machine, we found it would take 30 hours of uninterrupted processing! Clearly, this was a job for “the cloud”.
Active Record Enumerations (single db integer column) - plugin
I just added my first plugin ar_enumerations which allows to use “enumeration” field in your AR models. This plugin was at least useful for me, because it saved me from a lot of “has_many” tables and data stored to single integer column. Also I’m providing the sample application where you could see plugin in action. I hope this plugin will be useful for you too.
Installing Nginx with Passenger on Snow Leopard Using Macports
You can now use macports to install passenger. Link
Rails Stack on OpenSolaris 2009.06
A quick walkthrough setting up the Sun webstack+passenger and Ruby on Rails on OpenSolaris 2009.06 See it here
Deep In Rails: ActionMailer#deliver Part VI
So now we know how Rails sends emails. What can we do with that knowledge? All kinds of stuff…read more >>
ScreenCast LipsiADMIN - Autoadmin for your Rails Apps
In this screen cast we demonstrate some basic concepts how to use LipsiADMIN + ExtJS 3.1+ as a scaffold for the backend of your rails apps. See it here</a>
Remote sh console via XMPP/Jabber (GTalk)
I just pushed of gist a 25 lines of code Ruby script that allows you to interact with a remote sh session via Jabber. It’s called Jabber-SH and it’s like SSH over GTalk!
Ruby & WebSockets: TCP for the Browser
WebSockets are one of the most underappreciated innovations in HTML5 - bi-directional, fully asynchronous and data agnostic data exchange. Dev builds of Google Chrome, Firefox and Safari now all support WebSockets, which means that as developers we start taking advantage of the new architectures. A hands on look at the API, and implementation of Ruby WebSocket server and clients.
Heroku rubyflow clone deployment with search and monitoring
Screencast from a local ruby developer’s meeting demoing deployment of rubyflow clone on heroku (with search and monitoring add-ons)
New Screencast: Background Processes with Ruby
Learn how to spawn background processes using Ruby and the Process class. Here we discuss the difference between ‘wait’ and ‘detach’. Watch this screencast and more at TeachMeToCode.com.
APN on Rails needs a home
If you use, and like the apn_on_rails gem, perhaps you’d be interested in becoming it’s maintainer: http://www.metabates.com/2009/12/21/apn-on-rails-needs-a-home/
Generic Actions in Rails 3
Yehuda Katz details advanced route methods added in the newly rewritten routes DSL. Essentialy, he talks about how Django’s generic views can be ported to Rails 3. Check it out here.
A new library for performing object validations in Ruby
Here’s a new library for performing validations in Ruby. No other dependencies, includes ActiveRecord support, makes your validations easier to test.
Revamped Routes in Rails 3
I just posted a rundown on how you’d define routes in Rails 3. Check it out!
sudo gem install autotest a.k.a. one less thing to remember
A standalone autotest fork of ZenTest now if you need autotest simply install/require autotest, and if you need any other of the ZenTest features install the ZenTest without autotest.