5 changed files with 38 additions and 4 deletions
@ -1,7 +1,9 @@ |
|||||||
class BulkUploadLettingsResultsController < ApplicationController |
class BulkUploadLettingsResultsController < ApplicationController |
||||||
before_action :authenticate_user! |
before_action :authenticate_user! |
||||||
|
|
||||||
|
rescue_from ActiveRecord::RecordNotFound, with: :render_not_found |
||||||
|
|
||||||
def show |
def show |
||||||
@bulk_upload = current_user.bulk_uploads.find(params[:id]) |
@bulk_upload = current_user.bulk_uploads.lettings.find(params[:id]) |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
@ -1,7 +1,9 @@ |
|||||||
class BulkUploadSalesResultsController < ApplicationController |
class BulkUploadSalesResultsController < ApplicationController |
||||||
before_action :authenticate_user! |
before_action :authenticate_user! |
||||||
|
|
||||||
|
rescue_from ActiveRecord::RecordNotFound, with: :render_not_found |
||||||
|
|
||||||
def show |
def show |
||||||
@bulk_upload = current_user.bulk_uploads.find(params[:id]) |
@bulk_upload = current_user.bulk_uploads.sales.find(params[:id]) |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue