Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please check this log #6

Open
webdev1014 opened this issue Dec 20, 2016 · 0 comments
Open

please check this log #6

webdev1014 opened this issue Dec 20, 2016 · 0 comments

Comments

@webdev1014
Copy link

ActionView::Template::Error (Attempting to generate a URL from non-sanitized request parameters! An attacker can inject malicious data into the generated URL, such as changing the host. Whitelist and sanitize passed parameters to be secure.):
00:26:44 web.1 | 7: %th= tw("attributes.email")
00:26:44 web.1 | 8: - unless @mailing
00:26:44 web.1 | 9: %th= tw("attributes.mailing")
00:26:44 web.1 | 10: %th= smart_listing.sortable tw("logs.processing_at"), :processing_at
00:26:44 web.1 | 11: %th= tw("attributes.status")
00:26:44 web.1 | 12: %th
00:26:44 web.1 | 13: %tbody

I've just set maily_herald.config file as like follow
MailyHerald.setup do |config|
config.context :all_users do |context|
context.scope {User.all}
context.destination = :email
context.attributes do |user|
attribute_group(:user) do
attribute(:name) {user.full_name}
attribute(:email) {user.email}
attribute(:created_at) {user.created_at}
end
end
end

config.list :all_users do |list|
list.context_name = :all_users
end

config.one_time_mailing :welcome do |mailing|
mailing.title = "Welcome"
mailing.list = :all_users
mailing.subject = "Hello {{user.name}}!"
mailing.template = "Nice to have you on board. Cheers!"

mailing.start_at = Proc.new{|user| user.created_at + 5.minutes}
# Alternatively you can use Liquid:
# mailing.start_at = "user.created_at | plus: 5, 'minutes'"

mailing.enable

end
end

Why I got this error?

Please help me!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant