In my Rails 3.1 application i have a UsersController, which gives me /users URL.
But i need /u instead for all REST actions.
What is the best practice for that?
A default route is the route that takes effect when no other route is available for an IP destination address. If a packet is received on a routing device, the device first checks to see if the IP destination address is on one of the device's local subnets.
The command to configure this default route is: RouterA(config)#ip route 0.0.
You need to define the "path", in your case, modify routes.rb to
resources :users, :path => 'u'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With