diff options
Diffstat (limited to 'app/controllers/members_controller.rb')
-rw-r--r-- | app/controllers/members_controller.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index be3f717d1..f595f2cf6 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -33,9 +33,11 @@ class MembersController < ApplicationController end
private
- def find_project
+ def find_project
@member = Member.find(params[:id])
- @project = @member.project
- end + @project = @member.project
+ rescue ActiveRecord::RecordNotFound
+ render_404
+ end end |