mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-08 15:44:07 -04:00
23 lines
596 B
Ruby
23 lines
596 B
Ruby
class Admin::VenueController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
def index
|
|
end
|
|
|
|
def update
|
|
@venue = @conference.venue
|
|
if @venue.update_attributes!(params[:venue])
|
|
redirect_to(admin_conference_venue_info_path(conference_id: @conference.short_title),
|
|
notice: 'Venue was successfully updated.')
|
|
else
|
|
redirect_to(admin_conference_venue_info_path(conference_id: @conference.short_title),
|
|
notice: 'Venue Updation Failed!')
|
|
end
|
|
end
|
|
|
|
def show
|
|
@venue = @conference.venue
|
|
render :venue_info
|
|
end
|
|
end
|