You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/controllers/events_controller.rb
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,12 @@ def create
74
74
flash[:failure]="<h3>Evil Robot</h3> We didn't create this event because we think you're an evil robot. If you're really not an evil robot, look at the form instructions more carefully. If this doesn't work please file a bug report and let us know."
flash[:failure]="We allow a maximum of 3 links in a description. You have too many links."
79
+
end
80
+
77
81
respond_todo |format|
78
-
if !evil_robot && params[:preview].nil? && @event.save
82
+
if !evil_robot && !too_many_links && params[:preview].nil? && @event.save
79
83
flash[:success]='Your event was successfully created. '
80
84
format.html{
81
85
ifhas_new_venue && !params[:venue_name].blank?
@@ -108,8 +112,12 @@ def update
108
112
flash[:failure]="<h3>Evil Robot</h3> We didn't update this event because we think you're an evil robot. If you're really not an evil robot, look at the form instructions more carefully. If this doesn't work please file a bug report and let us know."
0 commit comments