Permalink
Browse files

Added a survey page and created a new mailer class method to send all…

… reserved attendees a call to action.
  • Loading branch information...
1 parent f2c821e commit 705dab2ded967e9d1f2ae42a44cb5a144d30907f @metaskills committed Nov 5, 2009
@@ -8,6 +8,10 @@ def deliver_upcoming_event_reminders
Rsvp.all.each { |rsvp| self.deliver_upcoming_event_reminder(rsvp) }
end
+ def deliver_surveys
+ Rsvp.reserved.all.each { |rsvp| self.deliver_survey(rsvp) }
+ end
+
end
def reservation(rsvp)
@@ -30,6 +34,11 @@ def upcoming_event_reminder(rsvp)
assign_common_attributes(rsvp)
end
+ def survey
+ subject "757 Studio Survey"
+ assign_common_attributes(rsvp)
+ end
+
protected
View
@@ -1,7 +1,7 @@
class Survey < ActiveRecord::Base
QUESTIONS = {
- :a1t => "Please give us a brief description of your expierence.",
+ :a1t => "Please give us a brief description of your expierence. We may quote you.",
:a2t => "Suggest a topic for a future 757 Studio event.",
:a1b => "Would you like to see a larger venue for a future event?",
:a3t => "Additional comments."
@@ -0,0 +1,11 @@
+
+757 Studio Attendee,
+
+First, thanks for attending our premier event! If you have a few minutes, please give us some feedback.
+
+<%= survey_rsvp_url(:id =>@rsvp.slug) %>
+
+
+ - Thanks Again!
+ 757 Studio
+
@@ -34,7 +34,7 @@
%td= r.company
%td= r.attendees
%td= image_tag('/images/layout/good.png') if r.reserved?
- %td= link_to(image_tag('/images/layout/good.png'),survey_rsvp_path(r)) if r.survey.present?
+ %td= link_to(image_tag('/images/layout/good.png'),survey_rsvp_path(:id=>r.slug),:class=>'nobor') if r.survey.present?
%td{:class => 'nowrap'}
= link_to '[Edit]', edit_rsvp_path(r)
- if Rails.env.development?

0 comments on commit 705dab2

Please sign in to comment.