ruby on rails - Routing Resources Doesn't Set up Routing Properly -
normally expect resources
set routes where
/groups/:id
however, when call rake routes
get
get /groups(.:format) groups#show
also, whenever use view helper method groups_path(group.id)
provides url link as
/groups.1
finally in routing file
resource :groups
this case edit, update, , destroy actions well. finally, doesn't produce index action. have create after write resources method. what's wrong , how fix this?
pluralize resource:
resources :groups
Comments
Post a Comment