In my Rails 3.1 application, I have a UserController that gives me / users a URL.
But I need / u instead of all the REST actions.
What is the best practice for this?
You need to define a "path", in your case, change route.rb to
resources :users, :path => 'u'
Source: https://habr.com/ru/post/903220/More articles:In Rails, the best way to compress a hash into a nested hash is ruby ββ| fooobar.comUsing different languages ββfor system representations than the current device language - iosMove up / down using jQuery to a certain height - is this possible? - jqueryUIButton UIControlEventTouchUpInside does not start, but UIControlEventTouchDown fires - iosiPhone using a different language than the one installed on the OS / device? - iphoneHow to parse comments using FParsec - f #How to convert FParsec parser to analyze spaces - f #Converting a list of characters (or an array) to a string - f #Check if CSS class exists without jQuery - javascriptSequenceFile separation in a controlled manner - Hadoop - hadoopAll Articles