Skip to content

Commit

Permalink
Readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
dalpo committed Sep 18, 2011
1 parent 796487b commit 427b58c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.rdoc
Expand Up @@ -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 <language> [Model]

Example:
rails g has_foreign_language it
Sintax:

rails g has_foreign_language <language> [Model]

Example:

rails g has_foreign_language it


Now let's create a book in the console and see how this works:
Expand Down

0 comments on commit 427b58c

Please sign in to comment.