mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-18 13:39:23 -04:00
24 lines
624 B
Ruby
24 lines
624 B
Ruby
module Admin
|
|
class LodgingsController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
def index
|
|
@venue = @conference.venue
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def update
|
|
@venue = @conference.venue
|
|
if @venue.update_attributes(params[:venue])
|
|
redirect_to(admin_conference_lodgings_path(conference_id: @conference.short_title),
|
|
notice: 'Lodgings were successfully updated.')
|
|
else
|
|
redirect_to(admin_conference_lodgings_path(conference_id: @conference.short_title),
|
|
notice: 'Updating lodgings failed!')
|
|
end
|
|
end
|
|
end
|
|
end
|