README.md in haml-rails-with-i18n-0.1.1 vs README.md in haml-rails-with-i18n-0.1.2

- old
+ new

@@ -2,10 +2,11 @@ Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah. To use it, add this line to your Gemfile: + gem "haml" gem "haml-rails-with-i18n" Then on your config/application.rb: config.generators do |g| @@ -15,9 +16,28 @@ Finally, install the gems from the console: bundle install You will have to execute rails g haml:locale at least once in order to get the locale translations in English. + +Alternatively, you can just add the following rules to your existing en.yml file: + + en: + edit_link: Edit + back_link: Back + show_link: Show + destroy_link: Destroy + new_link: "New %{model}" + + form_error_explanation: + singular: "1 error prohibited this %{model} from being saved" + plural: "%{count} errors prohibited this %{model} from being saved" + + index_title: "Listing %{model}" + edit_title: "Editing %{model}" + new_title: "New %{model}" + + confirm_destroy_message: "Are you sure?" Once you've done that, any time you generate a controller or scaffold, you'll get Haml instead of ERB templates. On top of that, when your Rails application loads, Haml will be loaded and initialized completely automatically! The modern world is just so amazing. ### Contributors