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.
Snow Leopard Installation For Open Source Devs
Ruby developers everywhere will be flocking to Snow Leopard like nats on a lamp post… with all of our open source software compiled and running against 32-bit libs… take this guy’s recommendations before you go clicking “Upgrade”. Otherwise, I’m sure you Fink and MacPorts users will find these tips more appealing.
Ape, Asynchronous PErsistence for Ruby Objects
I just pushed up some experimental, alpha quality code for asynchronously persisting Ruby objects to disk at my GitHub repository. Again, this is very early, alpha quality code with minimal, incomplete testing. I took the idea that Redis and other Key-Value stores use to provide fast reads/writes while providing persistence. I plan to allow for more customization with different types of triggers (like Redis allows), but for now it simply synchronizes the data on a regular interval. [more inside]
Using rescue_from and Authlogic to show possibly related content for 404 pages
A neat post I came across about rescue_from and ActionController exceptions to show possibly related content based on the request uri. http://www.mrkris.com/2009/08/21/authlogic-and-rescue_from-actioncontroller-routingerror/
Inherited Resources is scopes and responder fluent
Inherited Resources is growing in a fast pace and now it supports named scopes and ActionController::Responder from Rails 3.0 was backported! And be sure to let a comment if you agree or not with the new proposed DSL.
Successful Ruby freelancer. Interview with famous Rubyists.
How become Ruby ninja? Who know this better then professional and successful programmers? Therefore i prepare nine questions, found e-mails of people who interesting for myself, and send them my questions. I put their answers here, so you able to read it and understand what you need to become same kind of person - productive, successful and have fun while work.
Improve your search engine rank with Canonical URL Tag
I just read this awesome post that explains what a canonical URL tag is, why you should include them in your HTML and shows an easy way to implement them in Rails.
How to Build Sinatra on Rails 3
Interesting post by yehuda katz about how to use sinatra on rails
RVM: Ruby Version Manager
Ruby Version Manager (RVM) makes it ridiculously easy to use multiple versions of Ruby at the same time. You install RVM, tell it to “use” a certain Ruby distribution, and if you haven’t got it, it’ll install it. You can then switch around at will and “ruby” and “gem” will work independently on each. There’s also a writeup on Ruby Inside.
FlagShihTzu: Rails plugin to store boolean attributes in a single bit field column
The FlagShihTzu plugin, developed by the Rails team at XING, lets you add new boolean attributes to your models without db migrations.
More Advanced Ruby Method Arguments – Hashes And Block Basics
I’ve previously given an overview of basic method arguments in Ruby. There is quite a lot you can do with just the basic method arguments, so I purposely left out the more advanced topics from that post (which many people were quick to point out :)). However, if you want to have an in-depth knowledge of Ruby you will need to know about More Advanced Ruby Method Arguments (Hashes And Block Basics) and this is what I am going to cover here.
Combine named scopes with 'OR'
I released a new feature in searchlogic, that allows you to combine named scopes with ‘OR’.
Post-Javascript DOM with Aptana Jaxer
Accessing post-Javascript DOM (server-side) with Aptana Jaxer. Want to build a spider which sees the page as it is seen by the user? This is it.
Use Metal in Radiant CMS right now
Right now in Radiant CMS edge you can use rails metal in radiant cms. A new release is upcoming.
BDDCasts - Screencasts on Cucumber, RSpec, and Rails
Via Twitter I just learned about BDDCasts. It’s a commercial screencasting site with two screencasts so far. It covers Cucumber, RSpec, and Rails. The author appears to be Jeffrey Schoolcraft.
gemfeed: Keep track of your gems in your sleep
gemfeed.com lets you keep track of the gems you use. Sign up for an account, subscribe to gems, and receive RSS notifications when new versions are released.
Tequila: HAML-like JSON-generation language
Seems, our 48 hours of RailsRumble weren’t useles. Here is tequila - one plugin from our Rails frontend developer toolset. Feel free to ask any questions. @rozenbom_team
Recommended Ruby and Rails books
I finally got around to updating my recommended Ruby and Rails book pages.
How A Ruby Case Statement Works And What You Can Do With It
I found case statements in Ruby pretty interesting as they are capable of doing a little more than the equivalent constructs in other languages. How A Ruby Case Statement Works And What You Can Do With It is the result of me digging into it a little bit.
Reversible, secure storage for your Rails model with public key encryption
I just posted a Rails plugin that allows you to securely and easily store secrets in your Rails models using public key cryptography using Lockbox.
RIO: Ruby I/O Facilitator
It strikes me as extremely idiomatic but Rio bills itself as a “Ruby I/O facilitator” that abstracts the abilities of many of Ruby’s IO classes. It’s not new, but it hasn’t been on RF before.
Native MRI Callback
A quick dive into MRI extensions by stepping through a Callback object implementation
Mac OS X 10.6 Help Needed for autotest-fsevent Gem
The few Obj-C code lines of autotest-fsevent allegedly misbehave on Mac OS X 10.6. Can anyone with a Snow Leopard SDK help out?
@object.destroy doesn't work like you think it does
Find out more (Ed: At time of writing, it looks like David’s site is down but the link is correct so feel free to try!)