mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00: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: 'Lodgings Updation Failed!')
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|