Skip to content

Instantly share code, notes, and snippets.

@zenom
Created July 8, 2010 19:29
Show Gist options
  • Save zenom/468465 to your computer and use it in GitHub Desktop.
Save zenom/468465 to your computer and use it in GitHub Desktop.
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." ^
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
%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