Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

with_options requires 1 arg

  • Loading branch information...
commit 2c5479a662159816fcea5fa174f7cb9ff93d8c94 1 parent a2f6597
Jeremy Kemper authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 config/routes.rb
9 config/routes.rb
View
@@ -159,11 +159,10 @@
news_views.connect 'news/:id', :action => 'show'
news_views.connect 'news/:id/edit', :action => 'edit'
end
- news_routes.with_options do |news_actions|
- news_actions.connect 'projects/:project_id/news', :action => 'new'
- news_actions.connect 'news/:id/edit', :action => 'edit'
- news_actions.connect 'news/:id/destroy', :action => 'destroy'
- end
+
+ news_routes.connect 'projects/:project_id/news', :action => 'new'
+ news_routes.connect 'news/:id/edit', :action => 'edit'
+ news_routes.connect 'news/:id/destroy', :action => 'destroy'
end
map.connect 'projects/:id/members/new', :controller => 'members', :action => 'new'
Please sign in to comment.
Something went wrong with that request. Please try again.