Skip to content

Instantly share code, notes, and snippets.

@akomba
Created August 9, 2010 12:12
Show Gist options
  • Save akomba/515339 to your computer and use it in GitHub Desktop.
Save akomba/515339 to your computer and use it in GitHub Desktop.
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
@kamal
Copy link

kamal commented Aug 9, 2010

Check out my fork that DRYs it up with a shallow block http://gist.github.com/515537

Rails commit: rails/rails@6db9558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment