Permalink
Browse files

limit the routes

  • Loading branch information...
1 parent f33099b commit b5236a88dfa2c6d3e163e1506d6cff7e956b96bf @dgodd committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/routes.rb
View
@@ -9,7 +9,7 @@
:as => 'disconnect_omniauth_provider'
end
- resources :stories do
- resources :comments
+ resources :stories, only: [ :show, :new, :create ] do
+ resources :comments, only: [ :create ]
end
end

0 comments on commit b5236a8

Please sign in to comment.