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 cb3171a commit 0355b21Copy full SHA for 0355b21
app/controllers/application_controller.rb
@@ -106,7 +106,7 @@ def configure_permitted_parameters
106
end
107
108
def set_layout_and_contest
109
- if /^\/contests\/./.match(request.fullpath) && !/^\/contests\/new\/?/.match(request.fullpath)
+ if /^\/contests\/./.match(request.fullpath) && !/^\/contests\/new(\/|$)/.match(request.fullpath)
110
# Use arbitrary character here instead of [0-9] to give proper 404 to requests such as /contests/abcde
111
# However, we need to exclude /contests/new
112
@layout = :contest
0 commit comments