forked from bofh/fetsite
AutoCommit Die Sep 8 14:03:06 CEST 2015
This commit is contained in:
@@ -9,11 +9,11 @@ class NewsMailer < ActionMailer::Base
|
||||
@user=User.first
|
||||
@ability=Ability.new(@user)
|
||||
subject = @neuigkeit.title
|
||||
subject = subject + " email: " + email if Rails.env=="development"
|
||||
subject = subject.to_s + " email: " + email.to_s if Rails.env=="development"
|
||||
email = "andis@fet.at" if Rails.env=="development"
|
||||
email="andis@fet.at"
|
||||
mail(to: email, subject: subject)
|
||||
render locals: {current_user: User.first}
|
||||
render locals: {current_user: User.first}
|
||||
end
|
||||
def daily_newsletter(user_id)
|
||||
user=User.find(user_id)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<h1>
|
||||
<%= @neuigkeit.title%>
|
||||
</h1>
|
||||
<%= content_tag(:img,"",src: "http://"+ActionMailer::Base.default_url_options[:host].to_s+@neuigkeit.picture.big_thumb.url) %>
|
||||
<%= content_tag(:img,"",src: "http://"+ActionMailer::Base.default_url_options[:host].to_s+@neuigkeit.picture.big_thumb.url.to_s) %>
|
||||
<%=url_for controller: "neuigkeiten",action: :show, :id=>@neuigkeit.id, only_path: false %>
|
||||
<%= raw(@neuigkeit.text) %>
|
||||
<% @neuigkeit.questions.each do |q| %>
|
||||
|
||||
Reference in New Issue
Block a user