when I generate two words with the name controller, for example, FooBarrails creates a controller and the path seems to be foo_bar, itβs not very. I would like to have ways, at least FooBar.
FooBar
foo_bar
Possible? Suggestions?
Depends on how your route is defined in route.rs. For instance:
# if you have named routes map.foobar '/foobar/:action', :controller => 'foobar' # if you have resources, this will generate map.resources :foo_bar, :as => 'foobar'
This is for Rails 2.3. *, it is slightly different in Rails 3.
Source: https://habr.com/ru/post/1757078/More articles:Android platform - The screen will not move up to the bottom of the EditText entry - androidJquery slider display screen on slider - jqueryVisual Studio 2005 creates lowercase output directories - build-processHow many records can be uploaded to Salesforce using the Apex Data Loader at a time? - csvcan I start a selenium server with a different port - seleniumPractical use cases for returning javascript from an XHR / Ajax request? - javascripthow to manually parse iics file in java? - javaHow to disable browser print options for certain pages - jqueryMercury's ADT Properties - logicsimple tutorial for DCOM - visual-c ++All Articles