]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
update gem guide
authorZoran <zoran@zurb.com>
Tue, 5 Jul 2016 20:40:57 +0000 (13:40 -0700)
committerZoran <zoran@zurb.com>
Tue, 5 Jul 2016 20:40:57 +0000 (13:40 -0700)
docs/pages/gem-guide.md

index 2c106efb610b754f97e63fdeee1c59a6e90d1b44..dc22a375f7a383d10359686647d9d5472da3e34c 100644 (file)
@@ -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
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <!-- Enables media queries -->
-  <meta name="viewport" content="width=device-width"/>
-  <!-- Link to the email's CSS, which will be inlined into the email -->
-  <link rel="stylesheet" href="assets/css/foundation-emails.css">
-</head>
-
-<body>
-  <table class="body" data-made-with-foundation>
-    <tr>
-      <td class="center" align="center" valign="top">
-        <center>
-          <%= yield %>
-        </center>
-      </td>
-    </tr>
-  </table>
-</body>
-</html>
-```
-
 Done! You're now all set to start writing responsive emails in your Rails app.
 
 ---