I am adding a new action in UsersController, the name is "drag_demo".
But when I visit "http://localhost:3000/users/drag_demo", it show up the
error "Couldn't find User with ID=drag_demo"
I checked the routes. It seems the routes which created by map.resource
will cover the url "/users/drag_demo". If I move "map.connect
':controller/:action/:id'" to the top line in routes.rb, the problem
will be solved. But the other actions like "/users/1/edit" will not
Does anyone have ideas about that?
Thanks in advance