diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 0e2c1eeb..124bc5eb 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -44,7 +44,7 @@ class Admin::UsersController < ApplicationController person.update_attributes(params[:user][:people]) begin params[:user][:conferences].each do |r| - registration = person.registrations.new(:conference_id => r) + registration = person.registrations.new(:conference_id => r, :attended => 't') registration.save! end redirect_to admin_conference_registrations_path(@conference.short_title) @@ -61,4 +61,4 @@ class Admin::UsersController < ApplicationController redirect_to(:back, :alert => "Please select at least one conference to register.") end end -end +end \ No newline at end of file diff --git a/app/models/registration.rb b/app/models/registration.rb index ca0c5f67..adfa244b 100644 --- a/app/models/registration.rb +++ b/app/models/registration.rb @@ -10,9 +10,9 @@ class Registration < ActiveRecord::Base attr_accessible :person_id, :conference_id, :attending_social_events, :attending_with_partner, :using_affiliated_lodging, :arrival, :departure, :person_attributes, :other_dietary_choice, :dietary_choice_id, :handicapped_access_required, :supporter_registration_attributes, :social_event_ids, :other_special_needs, - :event_ids + :event_ids, :attended accepts_nested_attributes_for :person accepts_nested_attributes_for :supporter_registration accepts_nested_attributes_for :social_events -end \ No newline at end of file +end