Skip to content

Commit 3f44549

Browse files
Fix routes
1 parent a70a223 commit 3f44549

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

config/routes.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
scope module: :marketing_redesign do
99
root controller: :home, action: :show
1010
get "about-us", controller: :about, action: :show
11-
resources(
12-
:opportunities,
13-
only: %i[new create show],
11+
resource(
12+
:opportunity,
13+
only: %i[new create],
1414
path: "contact-us",
1515
path_names: {
1616
new: "",
1717
show: "success"
1818
}
19-
)
19+
) do
20+
get "success", action: :show
21+
end
2022
if Rails.env.development?
2123
get "library", controller: :library, action: :show
2224
end

0 commit comments

Comments
 (0)