Using Roadie 3 with Rails 4

I am trying to use the Roadie 3 gem in a Rails 4 application and I cannot figure out how to make it work.

As soon as I add the pearl to my package, I am.

class SuggestionMailer < ActionMailer::Base
  default from: "hi@app.com"

  def suggestions(user, suggestions)
    @suggestions = suggestions
    @stylesheets = %w[/assets/ink/base.css /assets/suggestion_mailer/suggestions.css]

    mail(to: user.email, subject: subject)
  end
end

Style sheets are added to the HTML email address in this loop:

<head>      
  <% @stylesheets.each do |href| %>
    <link rel="stylesheet" type="text/css" href="<%= href -%>" >
  <% end -%>
</head>

Everything seems to work fine in a development environment using the MailView stone .

However, when I actually send my messages via SMTP or Mailcatcher , Roadie does not appear in the lines of the style sheets before they are sent. I will receive an unencrypted email with tags <link/>still intact in the <head/>email.

, , , , Rails.

Roadie Readme , Rails, .

Roadie 3 Rails 4?

+4
1

, Roadie 3 Rails. Roadie README. , , .

+3

All Articles