method

generate_routing_code

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Rails::Generators::ControllerGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

generate_routing_code() private

This method creates nested route entry for namespaced resources. For eg. rails g controller foo/bar/baz index show Will generate - namespace :foo do

namespace :bar do
  get 'baz/index'
  get 'baz/show'
end

end

Show source
Register or log in to add new notes.