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.
Following Pivotal Tracker projects with Kilt
Kilt is a Rubygem to follow Pivotal Tracker projects. I explain the motivations in this post.
Everything There is to Know About Routes in Rails 3
Guest community contributor Rizwan Reza has put it all together and posted on the Engine Yard Blog.
ActiveHelper - helpers with proper encapsulation, delegation, interfaces and inheritance!
ActiveHelper is a generic framework for writing clean helpers with defined interfaces. It is geared towards usage in frameworks like Rails, Merb, Sinatra or your own project. Check out my introducing blog post and yada yada.
Check your scripts with jslint on rails
Learn how to check JavaScript code with JSLint in your Rails projects. Useful and highly recommended!
Rails + RightJS = Love
The right-rails (RightJS for Rails) plugin has seen some major updates recently, time for some brainwash from the author of RightJS.
Grow your app from seeds
Use rails database seed rake task to instantly add data to your development db, it helps spot design and user flow issues quickly.
Using Ruby To Solve Towers Of Hanoi Iteratively And Recursively
We can demonstrates the value of recursion by using Ruby to solve the Towers of Hanoi puzzle both iteratively and recursively. As a side-effect this shows how much more expressive the solution can be when done in Ruby.
Jquery Full Calendar with Rails
Jquery Full Calendar provides a full-sized, drag & drop calendar. I decided to give it a try and utilize its hooks for user triggered events within our Rails application. Find more information about this small project here
(My) RSpec best practices and tips
After a year using RSpec, I’m happy to share “(My) RSpec Best Practices and Tips”. I hope this will help you make your specs easier to maintain, less verbose, more structured and covering more cases. Your comments are very welcomed! :)
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!