Files
osem/app/controllers/admin/venue_controller.rb
2014-06-16 17:47:26 +05:30

24 lines
597 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