Created
July 8, 2010 19:29
-
-
Save zenom/468465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SyntaxError at /admin/models/create | |
compile error /Users/andy/Documents/Apps/models.securejoin.com/app/views/mailers/model_register/registration_email.haml:3: syntax error, unexpected ',', expecting ')' ..._true_false(("Hello #{:name}", = "Welcome to the site." ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Banjo.mailer :model_register do | |
# Message definitions here... | |
email :registration_email do |name, email| | |
from "no-reply@belator.com" | |
to email | |
subject "Your account has been created." | |
locals :name => name, :email => email | |
render "model_register/registration_email.haml" | |
content_type :html | |
via :smtp | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%b="Hello #{name}", | |
= "Welcome to the site." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment