Fixed bug when ending the group membership on profile page.
This commit is contained in:
parent
8a37a0e746
commit
aa341628a6
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class HomeController < ApplicationController
|
|||
membership = Membership.find(params[:membership_id])
|
||||
if membership.user == current_user
|
||||
membership.destroy
|
||||
flash[:notice] = "Du bist jetzt kein Mitglied der Gruppe #{@group.name} mehr."
|
||||
flash[:notice] = "Du bist jetzt kein Mitglied der Gruppe #{membership.group.name} mehr."
|
||||
else
|
||||
flash[:error] = "Ein Problem ist aufgetreten."
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue