Files
osem/app/controllers/admin/venue_controller.rb
2014-07-21 15:05:58 +02:00

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