6 7 8 9 10 11
# File 'lib/mkit/app/helpers/pods_helper.rb', line 6 def find_by_id_or_name pod = Pod.find_by_id(params[:id]) pod ||= Pod.find_by_name(params[:id]) error 404, "Couldn't find Pod '#{params[:id]}'\n" unless pod pod end