osem-fcy/app/controllers/admin/venue_controller.rb

23 lines
596 B
Ruby
Raw Normal View History

2013-01-07 09:04:09 +01:00
class Admin::VenueController < ApplicationController
before_filter :verify_organizer
def index
end
def update
@venue = @conference.venue
2014-06-13 22:50:46 +05:30
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
2013-01-07 09:04:09 +01:00
end
def show
@venue = @conference.venue
render :venue_info
end
end