From a4038a1ecc0fb5ef3be7140f23a660f868103894 Mon Sep 17 00:00:00 2001 From: Zoran Date: Tue, 5 Jul 2016 13:40:57 -0700 Subject: [PATCH] update gem guide --- docs/pages/gem-guide.md | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/docs/pages/gem-guide.md b/docs/pages/gem-guide.md index 2c106efb..dc22a375 100644 --- a/docs/pages/gem-guide.md +++ b/docs/pages/gem-guide.md @@ -31,12 +31,14 @@ Then execute: bundle install ``` -Next, make sure that the stylesheet included in your email layout imports the Foundation for Emails styles: +Run the following command to set up the required styles and mailer layout: -```scss -@import "foundation-emails"; +```bash +rails g inky:install ``` +(You can specify the generated mailer layout filename like so: `rails g inky:install some_name`) + Rename your email templates to use the `.inky` file extension. Note that you'll still be able to use ERB within the `.inky` templates: ``` @@ -44,33 +46,6 @@ welcome.html => welcome.html.inky pw_reset.html.erb => pw_reset.html.inky ``` -Finally, your mailer layout should have the following structure: - -```html - - - - - - - - - - - - - - - -
-
- <%= yield %> -
-
- - -``` - Done! You're now all set to start writing responsive emails in your Rails app. --- -- 2.47.2