From 427b58c68619082654dbc546a6597a62e06a0040 Mon Sep 17 00:00:00 2001 From: Andrea Dal Ponte Date: Sun, 18 Sep 2011 03:11:05 +0200 Subject: [PATCH] Readme example --- README.rdoc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.rdoc b/README.rdoc index 411ff43..3135ee2 100644 --- a/README.rdoc +++ b/README.rdoc @@ -18,23 +18,25 @@ Or as a plugin: == Example -First create your model: +=== First create your model: rails g model book title:string description:text -Then specify which fields need to be internationalized in your model: +=== Then specify which fields need to be internationalized in your model: class Country < ActiveRecord::Base has_foreign_language :title, :description end -Finally generate a migration with internationalized fields: +=== Finally generate a migration with internationalized fields: - Sintax: - rails g has_foreign_language [Model] - - Example: - rails g has_foreign_language it +Sintax: + + rails g has_foreign_language [Model] + +Example: + + rails g has_foreign_language it Now let's create a book in the console and see how this works: