Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created January 27, 2012 19:37
Show Gist options
  • Select an option

  • Save austinbv/1690521 to your computer and use it in GitHub Desktop.

Select an option

Save austinbv/1690521 to your computer and use it in GitHub Desktop.
work POST /work(.:format) {:controller=>"works", :action=>"create"}
new_work GET /work/new(.:format) {:controller=>"works", :action=>"new"}
edit_work GET /work/edit(.:format) {:controller=>"works", :action=>"edit"}
GET /work(.:format) {:controller=>"works", :action=>"show"}
PUT /work(.:format) {:controller=>"works", :action=>"update"}
DELETE /work(.:format) {:controller=>"works", :action=>"destroy"}
resources :works, :except => [:index, :new, :create] do
resources :tasks, :only => [:index, :new, :create]
resources :posts, :only => [:index, :new, :create]
resources :documents, :only => [:index, :new, :create]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment