Created
August 9, 2010 12:12
-
-
Save akomba/515339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources :channels do | |
resources :posts do | |
member do | |
put :disable | |
put :toggle_stickiness | |
put :add_channel | |
end | |
resources :replies, :only => [:index, :new, :create, :show] | |
end | |
end | |
resources :posts do | |
member do | |
put :disable | |
put :toggle_stickiness | |
put :add_channel | |
end | |
resources :replies, :only => [:index, :new, :create, :show] | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out my fork that DRYs it up with a
shallow
block http://gist.github.com/515537Rails commit: rails/rails@6db9558