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.
Ruby Class Variables and Inheritance
A humble attempt to present both the class-variable inheritance gotcha in ruby, as well as several ways around the problem depending upon your needs (mutable or non-mutable class attributes).
Devise + Imap = perfect for internal apps
Devise is a relativly new authentication framework for rails, using Warden (rack based authentication) and engines to create a flexible and fully featured setup for all sized apps. But what if you are building an app to be used internally in your office/organisation and you don’t have access to an LDAP server? Instead of recreating the wheel, use Devise with Imapable to create a simple shared authentication solution.
Your 12 Minutes of Apotomo - new weekly tutorial series on stateful ruby widgets launched!
Apotomo brings stateful components to Ruby and Rails. Finally we started a tutorial series showing all the bits and pieces of widget implementation, event triggering and handling, AJAX page updating and component-oriented architecure.
rack-legacy: A rack handler to run PHP/CGI alongside a Ruby/Rails App
A new rack module for running old legacy PHP/CGI code alongside your new shiny Ruby/Rails code. Ideal for development environments where you don’t want to install and setup and full Apache stack just to hack on a bit of code. A simple use Rack::Legacy::Php, 'public'
and your Rack-based app will now be executing PHP out of your public directory and all you have to do is rackup
your app. For Rails it is config.middleware.use Rack::Legacy::Php, Rails.public_path
and now you can just ./script/server
and you are done.
Rubinius in the Rough: High Performance Ruby
James Pitt takes a simple look at Rubinius for a high performance Ruby implementation. Read here
Speed Up Textmate in Large Projects
Ever get sick of Textmate showing you the beachball of doom for 5 seconds whenever you focus on it. Fix it.
Verifying Email Templates In ActionMailer Functional Tests
assert_template
is great for Rails functional tests, but there’s no equivalent for ActionMailer templates. This forces us to fall back on running a regex on the email body to make sure the right content was generated, and that can be a little fragile if the copy gets updated. In this short post, I code up a simple ActionMailer equivalent for assert_template
.
Multigiri: middleware for intelligent post-processing of HTML/XML documents
No more String#gsub in Rack middlewares! Nokogiri can do this dirty job, so why don’t employ it for doing HTML/XML post-processing in middlewares? Multigiri parse your document just once and add the Nokogiri document to all the middlewares for processing in [status, headers, document]
.
RVM - Ruby Version Manager Screencast at teachmetocode.com
Teachmetocode.com just launched a new video about RVM that shows you how to manage your Ruby versions and gem sets and how to set up Rails 3.0 on Ruby 1.9 so you can try out the enhanced versions of each.
Ruby Summer of Code
After Google Summer of Code didn’t approve any Ruby organizations, there’s now a Ruby Summer of Code.
Ubiquo, open source Rails based custom cms development Framework
Check it here - http://www.ubiquo.me or sudo gem install ubiquo; ubiquo --mysql myapp
— Every major aspect in Ubiquo is a separate plugin, so you can add functionalities as you require them for your project, and not carry additional code that you don’t need. You can also replace an Ubiquo functionality with your own plugin. Built “the Rails way” - this means that using Ubiquo won’t make you leave some of the Rails principles, like DRY, REST or Convention Over Configuration.
Embedded Probabilistic Programming in Ruby
just found on github: http://github.com/urso/rb_probdsl
ConfConnect for Scottish Ruby Conference 2010
Scottish Ruby Conference is happening in Edinburgh on 26th and 27th March,2010. ConfConnect is a small web application that gives you all the information related to talks, special events and parties. Moreover, you can create your personalized schedule, find out which sessions other people are attending,discuss and rate speakers etc.
Exploring Latest Enumerable Additions: chunk and slice_before
The article explores use cases for two Enumerable
methods added just recently to Ruby, namely Enumerable#chunk
and Enumerable#slice_before
Sinatra 1.0 is... OUT NOW!
Sinatra 1.0 has been released today. Install with gem install sinatra
or check it out on GitHub. Congratulations to the team!
RadiantCasts move to Radiant Blog
The series of Radiant CMS screencasts presenting extensions, features or interesting techniques has moved to Radiant Blog. It continues today with episode 6, which presents two simple but useful extensions: the Custom Fields Extension and the Stereotype Extension.
Rails Coach Interview with Chad Fowler (Part 1)
I interviewed Chad Fowler, the major force behind several of the ruby conferences and author of Rails Recipes and the Passionate Programmer. We talked about how to enhance your career and how to become the best developer you can be.
Merb 1.1 "Black Hole" released!
We’ve just released Merb 1.1.0!
Radiant Config In Source Control
Quick mention of a simple feature to store config data in your source for Radiant CMS.
Implementing RPX along with Clearance in 5 minutes using RPX_now
Tutorial to implement RPX authentication along with Cleareance on Ruby on Rails in 5 minutes. Chek it out at rpx now with clearance in 5 minutes.
Untangling Evented Code with Ruby Fibers
Event driven programming does not have to be complicated. With a little help from Ruby 1.9 Fibers, and new library em-synchrony, much of the complexity is easily abstracted, which means that we can have all the benefits of event-driven IO, without any of the overhead of a thread scheduler or complicated code.
Ruby at POSSCON in the Southeast
Ruby on Rails talent at the Palmetto Open Source Conference It is no secret, there is going to be a lot of Ruby on Rails talent at the Palmetto Open Source Conference this year. This is no coincidence, the Ruby on Rails ecosystem helps define the collective focus of the invited speakers for POSSCON. Each one of the speakers, know for their contributions to the Rails community has had a broader reach in regards to web development in general, and specifically, the ecosystem in which Rails exists.
Ruby Manor 2: Manor Harder videos available
Videos of the majority of the talks from Ruby Manor 2: Manor Harder are now available for your viewing and downloading pleasure.
Install Hudson For Rails on Ubuntu, The Tricky Part
Before switching to Hudson, we used CruiseControl.rb. Compared to CruiseControl.rb, I love these features: easily kill or start a new build; test all branches or some branches in a git repository. so you can create separate ci for each of your branches easily; code coverage plugin; code metric plugin; more stable and mature. Hudson is easy to install but configuration is a little tricky, So I wrote this blog Install CI Hudson for Ruby on Ubuntu. Hope this may helpful.
Awsymandias: Easily manage complicated AWS EC2 setups
Awsymandias is a library that helps you set up and tear down complicated AWS environments. In addition to offering a clean, fluent domain model for working with instances and groups of instances it allows you to persist role-to-instance-id mappings to SimpleDB, allowing you to manage your stack from multiple different machines.