question builder

This commit is contained in:
Stella 2014-02-09 18:05:57 +02:00
parent 4356616566
commit 3105c8da5d
28 changed files with 338 additions and 15 deletions

View file

@ -6,7 +6,7 @@ class Admin::RegistrationsController < ApplicationController
@pdf_filename = "#{@conference.title}.pdf"
@registrations = @conference.registrations.includes(:person).order("registrations.created_at ASC")
@attended = @conference.registrations.where("attended = ?", true).count
@headers = %w[name email attending_social_events attending_with_partner need_access other_needs arrival departure attended]
@headers = %w[first_name last_name email irc_nickname other_needs arrival departure attended]
end
def change_field
@ -128,4 +128,4 @@ class Admin::RegistrationsController < ApplicationController
redirect_to(admin_conference_registrations_path(@conference.short_title), :alert => 'You must be an admin to delete a registration.')
end
end
end
end