Quantcast
Channel: iain.nl
Browsing all 133 articles
Browse latest View live

Fancy Named Routes - Part I

I know tweakers.net has it, I liked it, and I wanted it for myself. The uris of news items are like this: http://core.tweakers.net/nieuws/50373/intel-stoot-ontwikkeling-netwerkprocessors-af.html First...

View Article



Fancy Named Routes - Part II

Here are some improvements for Fancy Named Routes - Part I. In this part we will be adding a more thorough solution for the html escaping in everywhere. I noticed this was absolutely important, when I...

View Article

Many to Many Relationships with Extra Data, Part I

Everybody probably read about has_many :through relations. With one simple command you can do some amazing stuff. Consider the following: class User < ActiveRecord::Base has_many :subscriptions...

View Article

Rcov all the way

I installed the rails_rcov plugin to see the coverage like any good programmer ;-) But when I want to know what all the tests combined produce in coverage, it just produced the coverage reports of each...

View Article

The Agile Grail and the Knights Templater

I've been working on a very rapid implemented website with Rails this week. It has been an exiting week. It all started on a Monday, when I overslept, and my colleague (Arie) smiled at me and said:...

View Article


Selenium clicking a label

I am making some acceptance tests for the LevenAls website, using plain text stories from David Chelimsky together with the Selenium runner from Kerry Buckley Story: Selenium clicking a label As a...

View Article

Plain Text Stories and Vim

Update: Updated the syntax file, redownload it if you got it before December 19th 2007. More news about my adventures with Selenium. It's hot and juicy, so lot's of exciting new things to do. I made a...

View Article

Pluralize for GetText released

I did some research into i18n plugins for Ruby on Rails. I found Globalize not manageable enough, especially looking at substitution of values and pluralization. Click to globalize...

View Article


The Knights Templater part II: Priory of Haml

Of course it's no problem to upgrade from Ruby on Rails 1.2.6 to 2.0.2. Just make sure you don't fuck up your subversion when unfreezing the old and freezing the new version. I just wanted to have that...

View Article


First Haml evaluation

As I promised, here is the evaluation of redoing a site from ERB to Haml. To immediately cut to the chase: Haml IS worth it! It's so definitely faster and easier to write than ERB. Your HTML output is...

View Article

Second Haml evaluation

After using Haml for over a month now, I can now really evaluate how Haml is to work with from day to day basis. Haml actually is a blessing. Doing minor adjustments is very easy, your code remains...

View Article

Surrounding something with a div, conditionally.

A problem I keep running in to, especially with Haml, is how to render Ajax requests. Say you have a partial on your page which is something dynamic, like a feedback form. Here you might want to...

View Article

Bringing Objects To Views

Ruby on Rails is a fine framework. It uses Ruby which is beautiful programming language. Everything is an object in Ruby, and the block structure allows you to do marvelous stuff with it. The Rails...

View Article


Finally! Rails goes i18n!

It has been some time, I know. It was a busy time. Since my last post I started working at Finalist IT Group, an exciting company doing exciting projects. Right now I'm doing a very demanding project...

View Article

i18n and l10n on r9r 2.2

Updated at October 10th 2008 to be up to date with Rails 2.2 RC1 Ruby on Rails (r9r ;) ) v2.2 ships with builtin internationalization (i18n). It tries to solve the problem dividing the world: language...

View Article


Translating ActiveRecord

Updated October 10th, 2008 to be up to date with Rails 2.2 RC1 release. With Rails 2.2 releasing any day now, I want to show you how to translate ActiveRecord related stuff. It is quite easy, once you...

View Article

Translating Columns

I made this into a plugin: translatable_columns. Dmitry asked in the comments of my last post about translating ActiveRecord: Can you write about how to use translated columns of database in rails? For...

View Article


Image may be NSFW.
Clik here to view.

My 5 minutes of fame @ RailsConf

Sven Fuchs gave a presentation of Rails i18n today. And I was in the 'thank you' page! :) Nice to see that Sven also thanked himself :)

View Article

The Future of I18n in Ruby on Rails @ RailsConf

Sven Fuchs put his presentation of i18n in Ruby on Rails online. A fine presentation! A must read for every Rails developer!

View Article

Plugin: translatable_columns

It was just three days ago when I discussed how to translate columns. At the moment I was writing it, I was already thinking: "this should be a plugin". So today, I took the liberty and created it....

View Article
Browsing all 133 articles
Browse latest View live




Latest Images