Cool

19 Random Rails Tutorials

Railsforum-1
RailsForum.com has just announced the winners of their October Tutorial Contest. A lot of cool tutorials came out of the contest, so I wanted to link to them here.

1st place -
HOWTO: Make a Rails Plugin From Scratch by Danger Stevens.

2nd place -
Refactoring on Rails: Move to Model and Refactoring on Rails: Multiple Scopes in Controller by Ryan Bates.

3rd place -
HOWTO: Send Instant Messages in Rails

Other entries
Image uploads and resizing for Rails models with mini-magick
XSS and when h() just ain't enough
Creating Two Models in One Form
Editing Multiple Models in One Form
Test Helper: Clean, Custom Assertion Messages
Debugging on Rails: Reading Stack Traces
Introduction to Form Helpers
Programming Best Practices
Advice to Rails Beginners: Follow Conventions
Handy RJS Tips
Using Autotest with Rails on Windows XP machines
Creating Many Models in One Form
Creating a Variable Number of Models in One Form
Getting Started With RESTful Rails
Rails Migration For Beginners

Read more →

Burnalytics – FeedBurner and Google Analytics Stats in Ruby and Rails

Fdcirculation
Burnalytics is a new library just released by Alex MacCaw (the developer also behind the popular Juggernaut plugin for Rails) that makes it easy to retrieve statistics from both FeedBurner and Google Analytics. As well as making it easy to retrieve statistics from these two sources, it also makes it a one line operation to produce graphs from the data retrieved as demonstrated by the screenshot above.

Read more →

The Best Ruby and Rails Jobs Site

Rubyjobs
I don't think the Ruby Jobs site at RubyNow gets enough link love from the community, and I want to put that right. If you haven't been there for a while, you'll be surprised. In just the last two weeks there are 30 new Ruby and Rails jobs available. That's even more than on the 37signals Jobs Board. Even better, if you're an employer you can post to the RubyNow jobs board for free, so check it out.

Read more →

Ruby Search: Search Ruby / Rails APIs all at once

Rubysearch-1
Ruby Search, a project by Simon Parker, is a special Web search tool that looks through the Rails class index, Rails methods, Ruby standard libraries, and Programming Ruby and presents the results in a simple sidebar to be viewed in a frame on the right. It seems to be a bit patchy from my tests, but it's still a cool tool. (Found via ozmm)

Read more →

Merb – a lightweight Ruby Web development framework

Merb is a micro-framework (developed by Ezra Zygmuntowicz) that ties in with Mongrel and erb and provides basic controller and view templating. It's an ideal way to put together quick and simple Web applications with Ruby that don't rely on any of the fancier features offered by Rails. It does have support for ActiveRecord, however. Merb allows you to create small systems that produce dynamic requests and can interact with databases but without the significant weight of the Rails framework. Where Ruby on Rails is a Big Mac, Merb is a McNugget.

Read more →

How to Cache Data and Preload The Cache in Rails

Courtenay has come up with an ingenious solution to caching and precaching in Ruby on Rails with memcached. It caches data from database requests, as you'd expect, but you can also put together a special forking method that caches data in advance. Courtenay's suggestion for this is if a user does a search and you cache the initial page of search results, you could speculate the user might progress onto page two of the search, so you can get Rails to precache that data in advance so the next page load is blazing fast.

Read more →

How to create a UNIX /etc/init.d startup script with Ruby

Most init.d start-up scripts seem to be bash scripts, but you can write them with any language. Here's some template code I use to create my own Linux services. You can even add them to chkconfig to be started properly on startup, and they'll also work with RedHat / CentOS's service system straight off.

Read more →