foxnewsnetwork / rubyopenvn

Ruby-based implementation of FFOpenVN as ported over from nodejs
1 stars 0 forks source link

weird routing bug for users #1

Closed foxnewsnetwork closed 12 years ago

foxnewsnetwork commented 12 years ago

Maybe this is just how devise does things (not likely), but the routes for users is very strange. Specifically, we have:

/users.3

instead of

/users/3

mapping to the third user.

hanjing5 commented 12 years ago

this is likely due to using users_path(id) instead of user_path(id) or vice versa.

foxnewsnetwork commented 12 years ago

This is actually due to using resource :users instead of resources :users in config/routes.rb. Who would've thought! Be sure to teach your children proper grammar in the future.