From 3fd206c5916361aabf941c4432ef2518220ca678 Mon Sep 17 00:00:00 2001 From: Julien Desrosiers Date: Sun, 6 Feb 2011 02:58:04 +0800 Subject: [PATCH] update README to add `ruby_parser` as a dependency for generating the Haml templates --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index fc9e9d5a..2dc3c132 100644 --- a/README.rdoc +++ b/README.rdoc @@ -218,7 +218,7 @@ Devise currently supports generating views for the following template engines (u * Haml (http://github.com/nex3/haml) * Slim (http://github.com/stonean/slim) -Note: If you are generating Haml or Slim templates, you will need to have a few dependencies such as `hpricot` (for both Haml and Slim) and `haml2slim` (for Slim) installed. +Note: If you are generating Haml or Slim templates, you will need to have a few dependencies such as `ruby_parser` (for Haml), `hpricot` (for both Haml and Slim) and `haml2slim` (for Slim) installed. If you have more than one role in your application (such as "User" and "Admin"), you will notice that Devise uses the same views for all roles. Fortunately, Devise offers an easy way to customize views. All you need to do is set "config.scoped_views = true" inside "config/initializers/devise.rb".