# File app/controllers/conferences_controller.rb, line 121 def get_conference begin if params[:id] conf = params[:id] @conference = Conference.find(conf) elsif params[:short_name] conf = params[:short_name] @conference = Conference.find_by_short_name(conf) end raise ActiveRecord::RecordNotFound unless @conference rescue ActiveRecord::RecordNotFound flash[:error] << _('Invalid conference <em>%s</em> requested') % conf redirect_to :action => :list return false end end