diff --git a/app/controllers/admin/call_for_papers_controller.rb b/app/controllers/admin/call_for_papers_controller.rb index 4e4e3e13..139c1a74 100644 --- a/app/controllers/admin/call_for_papers_controller.rb +++ b/app/controllers/admin/call_for_papers_controller.rb @@ -46,7 +46,7 @@ module Admin if @call_for_paper.destroy redirect_to admin_conference_call_for_paper_path, notice: 'Call for Papers was successfully deleted.' else - redirect_to admin_conference_call_for_paper_path, alert: 'A error prohibited this Call for Papers from being destroyed: '\ + redirect_to admin_conference_call_for_paper_path, alert: 'An error prohibited this Call for Papers from being destroyed: '\ "#{@call_for_paper.errors.full_messages.join('. ')}." end end diff --git a/app/controllers/admin/registration_periods_controller.rb b/app/controllers/admin/registration_periods_controller.rb index 05cdf705..f8c723e4 100644 --- a/app/controllers/admin/registration_periods_controller.rb +++ b/app/controllers/admin/registration_periods_controller.rb @@ -16,7 +16,7 @@ module Admin redirect_to admin_conference_registration_period_path(@conference.short_title), notice: 'Registration Period successfully updated.' else - flash[:alert] = "A error prohibited the Registration Period from being saved: #{@registration_period.errors.full_messages.join('. ')}." + flash[:alert] = "An error prohibited the Registration Period from being saved: #{@registration_period.errors.full_messages.join('. ')}." render :new end end @@ -36,7 +36,7 @@ module Admin redirect_to admin_conference_registration_period_path(@conference.short_title), notice: 'Registration Period successfully updated.' else - flash[:alert] = 'A error prohibited the Registration Period from being saved: ' \ + flash[:alert] = 'An error prohibited the Registration Period from being saved: ' \ "#{@registration_period.errors.full_messages.join('. ')}." render :edit end diff --git a/app/controllers/admin/registrations_controller.rb b/app/controllers/admin/registrations_controller.rb index 2d516cd4..55ecdcd5 100644 --- a/app/controllers/admin/registrations_controller.rb +++ b/app/controllers/admin/registrations_controller.rb @@ -19,7 +19,7 @@ module Admin redirect_to admin_conference_registrations_path(@conference.short_title), notice: 'Successfully updated registration!' else - flash[:alert] = "A error prohibited the Registration for #{@conference.title}: "\ + flash[:alert] = "An error prohibited the Registration for #{@conference.title}: "\ "#{@registration.errors.full_messages.join('. ')}." render :edit end diff --git a/app/controllers/admin/splashpages_controller.rb b/app/controllers/admin/splashpages_controller.rb index fe06ae2c..7359cf60 100644 --- a/app/controllers/admin/splashpages_controller.rb +++ b/app/controllers/admin/splashpages_controller.rb @@ -35,7 +35,7 @@ module Admin if @splashpage.destroy redirect_to admin_conference_splashpage_path, notice: 'Splashpage was successfully destroyed.' else - redirect_to admin_conference_splashpage_path, alert: 'A error prohibited this Splashpage from being destroyed: '\ + redirect_to admin_conference_splashpage_path, alert: 'An error prohibited this Splashpage from being destroyed: '\ "#{@splashpage.errors.full_messages.join('. ')}." end end diff --git a/app/controllers/admin/venues_controller.rb b/app/controllers/admin/venues_controller.rb index 9bb8e9b0..98ccd708 100644 --- a/app/controllers/admin/venues_controller.rb +++ b/app/controllers/admin/venues_controller.rb @@ -36,7 +36,7 @@ module Admin if @venue.destroy redirect_to admin_conference_venue_path, notice: 'Venue was successfully deleted.' else - redirect_to admin_conference_venue_path, alert: 'A error prohibited this Venue from being destroyed: '\ + redirect_to admin_conference_venue_path, alert: 'An error prohibited this Venue from being destroyed: '\ "#{@venue.errors.full_messages.join('. ')}." end end diff --git a/app/controllers/conference_registrations_controller.rb b/app/controllers/conference_registrations_controller.rb index 52331eab..d750d405 100644 --- a/app/controllers/conference_registrations_controller.rb +++ b/app/controllers/conference_registrations_controller.rb @@ -34,7 +34,7 @@ class ConferenceRegistrationsController < ApplicationController notice: 'You are now registered and will be receiving E-Mail notifications.' end else - flash[:alert] = "A error prohibited the registration for #{@conference.title}: "\ + flash[:alert] = "An error prohibited the registration for #{@conference.title}: "\ "#{@registration.errors.full_messages.join('. ')}." render :new end @@ -45,7 +45,7 @@ class ConferenceRegistrationsController < ApplicationController redirect_to conference_conference_registrations_path(@conference.short_title), notice: 'Registration was successfully updated.' else - flash[:alert] = "A error prohibited the registration for #{@conference.title}: "\ + flash[:alert] = "An error prohibited the registration for #{@conference.title}: "\ "#{@registration.errors.full_messages.join('. ')}." render :edit end @@ -57,7 +57,7 @@ class ConferenceRegistrationsController < ApplicationController notice: "You are not registered for #{@conference.title} anymore!" else redirect_to root_path, - alert: "A error prohibited deleting the registration for #{@conference.title}: "\ + alert: "An error prohibited deleting the registration for #{@conference.title}: "\ "#{@registration.errors.full_messages.join('. ')}." end end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3975c9d4..41041d8e 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -16,7 +16,7 @@ class UsersController < ApplicationController if @user.update(user_params) redirect_to @user, notice: 'User was successfully updated.' else - flash[:error] = "A error prohibited your Profile from being saved: #{@user.errors.full_messages.join('. ')}." + flash[:error] = "An error prohibited your Profile from being saved: #{@user.errors.full_messages.join('. ')}." render :edit end end