1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

update README to add ruby_parser as a dependency for generating the Haml templates

This commit is contained in:
Julien Desrosiers 2011-02-06 02:58:04 +08:00 committed by José Valim
parent 7a1852e9f5
commit 3fd206c591

View file

@ -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".