Permalink
Browse files

remove excess routes (crops, welcome/index)

  • Loading branch information...
Paul Morganthall
Paul Morganthall committed Oct 6, 2010
1 parent 60905b5 commit f45d986bee4f3e6759f21a6dc11f59a10778a3d5
Showing with 5 additions and 4 deletions.
  1. +5 −4 config/routes.rb
View
@@ -1,12 +1,13 @@
Kimballtron::Application.routes.draw do
devise_for :farmers
resources :masteries, :only => :index
- resources :crops
- #TODO: do I need both the get/welcome and root/welcome lines?
- get "welcome/index"
root :to => "Welcome#index"
-#FIXME: learn how to add two routes properly. This one adds a bunch.
+#TODO: This creates *member* edit and update methods as well. why?
+#rake routes:
+#edit_mastery GET /masteries/:id/edit(.:format) {:action=>"edit", :controller=>"masteries"}
+# mastery PUT /masteries/:id(.:format) {:action=>"update", :controller=>"masteries"}
+
resources :masteries, :only => [:edit, :update] do
collection do
get 'edit'

0 comments on commit f45d986

Please sign in to comment.