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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -