Permalink
Browse files

Added localization section.

  • Loading branch information...
1 parent 7d11b53 commit 680bd94d5d392eae56fac7030738454844c2232a @hopsoft committed Nov 17, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
@@ -118,6 +118,18 @@ Note the authorize method signature. The first arg is the **action** being perfo
While originally written to support [CanCan](https://github.com/ryanb/cancan), its pretty simple to take control and manage authorization yourself.
+## Localization
+
+Enable I18n internationalization with a simple method call.
+
+```ruby
+# app/controllers/beach_bums_controller.rb
+class BeachBumsController < ApplicationController
+ include Coast
+ set_localized true
+end
+```
+
## Advanced Usage
Coast comes with few tricks up its sleeve.

0 comments on commit 680bd94

Please sign in to comment.