Configure language of events

This commit is contained in:
Ana 2016-03-21 00:18:20 +01:00
parent ad0a8eecf2
commit 6c87995050
16 changed files with 115 additions and 16 deletions

View file

@ -21,10 +21,12 @@ class ProposalController < ApplicationController
authorize! :new, @event
@user = User.new
@url = conference_program_proposal_index_path(@conference.short_title)
@languages = @program.languages_list
end
def edit
@url = conference_program_proposal_path(@conference.short_title, params[:id])
@languages = @program.languages_list
end
def create
@ -152,7 +154,7 @@ class ProposalController < ApplicationController
def event_params
params.require(:event).permit(:event_type_id, :track_id, :difficulty_level_id,
:title, :subtitle, :abstract, :description,
:require_registration, :max_attendees)
:require_registration, :max_attendees, :language)
end
def user_params