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:
```
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.
---