We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17136a commit d2127efCopy full SHA for d2127ef
app/controllers/admin/groups_controller.rb
@@ -7,7 +7,7 @@ def index
7
@event_groups = @event.event_groups
8
end
9
10
- # An action to regenerate
+ # An action to regenerate
11
# -> a controller method
12
# -> button (to call the action)
13
# -> a route
@@ -22,6 +22,8 @@ def generate
22
def regenerate
23
24
@event_groups.destroy_all
25
+ @event.reload
26
+
27
fill_groups
28
redirect_to admin_event_groups_path(@event), notice: "Groups successfully regenerated"
29
0 commit comments